|
Rank: Member Groups: Member
Joined: 3/19/2013 Posts: 10
|
Hi,
I save an aspx file to PDF after a buttonclick. Now I don't want to download the PDF, but just show it fullscreen to the user.... The user can decide then if het wants so save or print the document. How do I do that? I tried PDFDocument and afterrender, but without succes..
Which licence do I need to buy in order to use this functionality?
friendly regards, Mieke
method _Default.Unnamed1_Click(sender: System.Object; e: System.EventArgs); begin ASPXToPDF1.RenderAsPDF('test.pdf'); end;
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
In order to use ASPXToPDF, you only need to purchase a license for EO.Pdf.
To send the PDF file to the client without prompting the save dialog, please download the latest EO.Web from our download page, then set the ASPXToPDF control's ResultAsDownload to false. The ResultAsDownload was added very recently, so it does not exist in older versions.
Hope this helps. Please feel free to let us know if you have any more questions.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/19/2013 Posts: 10
|
Hi,
I downloaded yesterday, so I should have the latest version.. I don't see the aspxtopdf component in my toolbox (see earlier post), I added it programmatically: <eo:ASPXToPDF runat="server" ID="ASPXToPDF1"></eo:ASPXToPDF>
This does not compile. ASPXToPDF1.ResultAsDownload := False; ASPXToPDF1.RenderAsPDF('test.pdf');
The compiler errror: Error 1 (E44) No member "ResultAsDownload" on type "EO.Web.ASPXToPDF"
What can I do to get around this? thank you, Mieke
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Download the latest EO.Web again. :)
|
|
Rank: Member Groups: Member
Joined: 3/19/2013 Posts: 10
|
Just did that, no use.... version of EO.WEB: version, 16.00.400, 20-2-2013 It does not compile. Shall I send you my testproject? Mayby that is easier?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
That version number is the version of the setup file. It has nothing to do with the product version. What you need to run the setup to install the newer version of EO.Web, and then replace your project's EO.Web.dll with the latest.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/19/2013 Posts: 10
|
Hi,
what you describe is what I did. I just found out that after that I had to remove the references in my project to eo.web and eo.pdf and add them again. Now it works!
thank you, Mieke
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Of course you have to refresh your reference every time you update the DLL. :) Glad to hear that it's working for you.
|
|