PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 10:51 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Jan 17, 2009 4:12 am 
Offline

Joined: Sat Jan 17, 2009 4:09 am
Posts: 2
Hello,

Having a lot of luck with the intuitive code of PDF sharp, my stumbling block comes at document.save(). Where is it saving the document? The Process.Start() does nothing (the previous page simply refreshes) and after doing a search on the server I find nothing for the filename I created. I have also tried using a server path as I would prefer to put these files in a central location.

Can anyone enlighten me on the consequences of the document.Save() call?

Thank you!
Chris


Top
 Profile  
Reply with quote  
 Post subject: Found Answer
PostPosted: Sat Jan 17, 2009 7:20 pm 
Offline

Joined: Sat Jan 17, 2009 4:09 am
Posts: 2
Hello Everyone,

I found where the default save location is (at least on my server):

C:\windows\system32\inetsrv

Thanks,
Chris


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 19, 2009 9:46 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi!
You can set the working directory and you can always specify a fully qualified path when calling Save.
How about using TempFileCollection?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 13, 2009 5:07 pm 
Offline

Joined: Tue Oct 13, 2009 5:00 pm
Posts: 2
Hello,

I am having the problem where the Process.Start() function is not working correctly. When the code executes on the server, it does nothing (the previous page simply refreshes). I save the filename in a temp directory and can see that the .pdf is created, however, it does not display with the Process.Start() function.
I do have Adobe reader installed on the server and on the workstation.
I can run this same code on my development workstation and it works fine.
How do I correct this?

Thanks,

Ken


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 14, 2009 8:06 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi, Ken!
kimbapup wrote:
I am having the problem where the Process.Start() function is not working correctly. [...] How do I correct this?

I understand that you call Process.Start() on the server. You need a desktop for Acrobat to show up. If Process.Start() is called from a service on the server, there is no desktop.

You have to call Process.Start() on the client - with a file that is accessible for the client.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 16, 2009 9:54 pm 
Offline

Joined: Tue Oct 13, 2009 5:00 pm
Posts: 2
Thank you Thomas.
That makes sense!


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 363 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