PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Saving PDF files
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2438
Page 1 of 1

Author:  saks07 [ Sat May 11, 2013 3:47 pm ]
Post subject:  Saving PDF files

Hi,

I wonder if there are other ways to save a PDF in addition to the "const string file = ..." way. For example I would like to save the file like this

const string file = "string" + TextBox.Text;

but when I try to save it like this it gives an error. Is there another way for saving PDF files with PDF#?

Author:  Thomas Hoevel [ Mon May 13, 2013 8:31 am ]
Post subject:  Re: Saving PDF files

Hi!

Omit the word "const" when the name has to be variable (that's part of the C# basics and has nothing to do with PDFsharp).

Author:  saks07 [ Fri May 17, 2013 8:13 am ]
Post subject:  Re: Saving PDF files

Thanks for the solution and sorry for the late reply. I thought that the string file has to be a const variable to save it as a pdf and if it's not, the application will crash, seems that i was wrong :). Thanks again.

Regards,
saks07

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/