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

document.Save(filename) - Where does it go?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=612
Page 1 of 1

Author:  webdezchris [ Sat Jan 17, 2009 4:12 am ]
Post subject:  document.Save(filename) - Where does it go?

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

Author:  webdezchris [ Sat Jan 17, 2009 7:20 pm ]
Post subject:  Found Answer

Hello Everyone,

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

C:\windows\system32\inetsrv

Thanks,
Chris

Author:  Thomas Hoevel [ Mon Jan 19, 2009 9:46 am ]
Post subject: 

Hi!
You can set the working directory and you can always specify a fully qualified path when calling Save.
How about using TempFileCollection?

Author:  kimbapup [ Tue Oct 13, 2009 5:07 pm ]
Post subject:  Re: document.Save(filename) - Where does it go?

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

Author:  Thomas Hoevel [ Wed Oct 14, 2009 8:06 am ]
Post subject:  Re: document.Save(filename) - Where does it go?

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.

Author:  kimbapup [ Fri Oct 16, 2009 9:54 pm ]
Post subject:  Re: document.Save(filename) - Where does it go?

Thank you Thomas.
That makes sense!

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