Welcome Guest Search | Active Topics | Sign In | Register

ASPXToPDF export repeats first column of table for larger exports Options
Gryphon Networks Corp
Posted: Tuesday, April 19, 2016 1:38:21 PM
Rank: Newbie
Groups: Member

Joined: 4/19/2016
Posts: 2
When attempting to use ASPXtoPDF to export a page with tabular data to PDF, the table is pushed over to to the right, and the first column is repeated in a second table, with the positioning correct.

This happens beginning with about 10 rows in the table. The strange thing is that we have other pages that have more than 10 rows that have no issue with the export.

This happens whether the CSS formatting is present in the page or not.

I have tried extending the "MinLoadWaitTime" value, thinking it might be due to the page not finishing loading, but with no effect. I have also experimented with just about every other setting, with no effect.


Screenshot of how the export looks with few rows (and should always look):


Screenshot with table repeating:
eo_support
Posted: Tuesday, April 19, 2016 3:38:57 PM
Rank: Administration
Groups: Administration

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

This most likely is caused by unclosed td element in your page. You can try to comment out RenderAsPDF call and see if it renders the correct result on the screen. If that also shows the mismatch, then obviously the problem is in your HTML.

If the problem is not in your HTML, please try to isolate the problem into a test project and send the test project to us. See here for more details:

http://www.essentialobjects.com/forum/test_project.aspx

Once we have the test project we will be happy to investigate further.

Thanks!
Gryphon Networks Corp
Posted: Wednesday, April 20, 2016 10:44:32 AM
Rank: Newbie
Groups: Member

Joined: 4/19/2016
Posts: 2
Problem definitely is not due to an unclosed TD element, I eliminated that as a possibility before submitting the issue.

The export is done via a button that performs a postback to the page with an export flag set. The HTML in the original page displays perfectly, and commenting out the RenderAsPDF call allows the page to display perfectly in the new window as well. A review of the rendered HTML through the page source after load completion in both the original view and the view to be exported shows no unclosed or malformed HTML tags, <td> or otherwise.

This output was generated from a test project. However, the issue is no longer happening within the test project, whether I run it locally or deploy to our QA environment. The problem is still occurring with our actual pages in our QA, integration, and production environment. I will submit the test project as soon as I can get it to reproduce the problem again.
eo_support
Posted: Wednesday, April 20, 2016 4:03:06 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
No problem. We will look into it as soon as we receive it.

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.