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?
|
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
|
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.
|