Welcome Guest Search | Active Topics | Sign In | Register

open PDF Options
mieke
Posted: Wednesday, March 20, 2013 4:14:05 AM
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;
eo_support
Posted: Wednesday, March 20, 2013 9:08:11 AM
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!
mieke
Posted: Wednesday, March 20, 2013 9:27:07 AM
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

eo_support
Posted: Wednesday, March 20, 2013 10:07:30 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Download the latest EO.Web again. :)
mieke
Posted: Wednesday, March 20, 2013 10:41:07 AM
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?
eo_support
Posted: Wednesday, March 20, 2013 12:32:01 PM
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!
mieke
Posted: Thursday, March 21, 2013 8:30:52 AM
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
eo_support
Posted: Thursday, March 21, 2013 8:50:53 AM
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.


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.