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
|
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.aspxIf you use MVCToPDF, you need to set this property: http://www.essentialobjects.com/doc/4/eo.pdf.mvc.mvctopdf.resultfilename.aspxNote 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!
|