Rank: Newbie Groups: Member
Joined: 5/20/2017 Posts: 1
|
I'm trying essential objects for the first time. I need help with 2 topics. First I try to créate a PDF from an ASPX page. It créate it almost correctly. The one problem is that my chart.js were wrong. The bars weren't the size they really are. So I keep testing and suddenly the Ajax callback for the chart.js wasn't working. I think is something about the loading time. Sometimes work and sometimes don´t.
Another issue is that I did not find a wat to exportan ASPX page to PDF from antoher ASPX page. Can you help me please?
I have the trial versión at this momento. I'm testing it in orther to decide to buy it or not.
Thanks in advance for your help.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Please try to set HtmlToPdf.Options.MinLoadWaitTime to a higher value (for example, 2000 ms) and see if it resolves your chart problem.
As to export another page to PDF, you just have to trigger the page. For example, if you wish to "download" page1.aspx as PDF from page2.aspx, you can use the following method:
1. ASPXToPDF is still placed inside page1.aspx since this is the page you wish to convert; 2. Using some kind of method to trigger requesting page1.aspx in page2.aspx. For example, one simple method is to use a link, you can also use an iframe; 3. Call RenderAsPDF inside page1.aspx's Page_Load event. This way as soon as the page is loaded (triggered by step 2), it will be converted to PDF;
Hope this helps. Please feel free to let us know if you still have any questions.
Thanks!
|