Welcome Guest Search | Active Topics | Sign In | Register

rename aspx page for PDF Options
markwhite
Posted: Thursday, April 9, 2015 9:24:30 AM
Rank: Newbie
Groups: Member

Joined: 4/9/2015
Posts: 1
Hi,
I have recently used EOpdf.dll in my application and it worked great. However the page I am taking PDF is NewEnroleepdf.aspx, so if I download this as PDF it saves as NewEnroleepdf.pdf, I want to change to what ever the name is eg; JohnDoe.pdf. I have tried Pageow.Header.Title but it didnt work as it si picking up the name of the aspx file.
So please tell me , how to achieve this.

Thanks
eo_support
Posted: Thursday, April 9, 2015 9:40:59 AM
Rank: Administration
Groups: Administration

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

If you use ASPXToPDF, you need to call this method to supply the file name:

http://www.essentialobjects.com/doc/1/eo.web.aspxtopdf.renderaspdf_overload_1.aspx

If you use MVCToPDF, you need to set this property:

http://www.essentialobjects.com/doc/4/eo.pdf.mvc.mvctopdf.resultfilename.aspx

Note that this is only the "suggested" file name. The actual file name the browser choose may derive from this name. For example, if you specify "JohnDoe.pdf", the browser may decide to use "JohnJoe 2.pdf".

Hope this helps. Please feel free to let us know if you still have any question.

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.