PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 04, 2024 10:20 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Saving PDF files
PostPosted: Sat May 11, 2013 3:47 pm 
Offline

Joined: Tue Apr 30, 2013 2:38 pm
Posts: 5
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#?


Top
 Profile  
Reply with quote  
 Post subject: Re: Saving PDF files
PostPosted: Mon May 13, 2013 8:31 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
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).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Saving PDF files
PostPosted: Fri May 17, 2013 8:13 am 
Offline

Joined: Tue Apr 30, 2013 2:38 pm
Posts: 5
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 104 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group