Welcome Guest Search | Active Topics | Sign In | Register

ASPXToPDF1.RenderAsPDF > How to change default path... Options
Darrel
Posted: Monday, October 10, 2011 7:45:22 PM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2011
Posts: 32
Hey there seems to be an obvious answer to my problem, but it does not seem so obvious afterall: I am unable to force the rendered PDF to save in an alternate folder other than the DOWNLOAD (default)


ASPXToPDF1.RenderAsPDF(filename) file always goes to download folder even if I try:

ASPXToPDF1.RenderAsPDF(NewPath + filename)

not sure why I cannot do this?
eo_support
Posted: Monday, October 10, 2011 8:34:41 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can not do it because it does not exist in HTTP. There is no such thing as saving into another folder in Web. No browser will let server side code to choose a folder for the user. IE uses to display a "Save As" dialog that lets the end user to choose folder (note this is user choosing a folder, not you choosing a folder for the user from your server side code) and it no longer does that in IE 9. The idea is user decides where files are downloaded to and server has absolutely no say on this.

Thanks
Darrel
Posted: Monday, October 10, 2011 10:47:02 PM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2011
Posts: 32
OK - makes perfect sense - it was obvious after all & I should have recalled that...
Thanks.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.