Welcome Guest Search | Active Topics | Sign In | Register

ASPXToPDF renders part of master page Options
Lindsay
Posted: Wednesday, October 7, 2015 12:44:14 AM
Rank: Newbie
Groups: Member

Joined: 10/6/2015
Posts: 1
I have an ASPX page that inherits from a master page. There is a user control on the ASPX page which has a div element wrapping the part of the page that I am trying to render to a PDF.

Specifying the VisibleElementIds works fine, but the issue that I am having is that part of the master page elements are rendered in the PDF. I am not able to pinpoint what controls are being rendered because the pdf displays only parts of them.

Please let me know what I can do to eliminate this issue.
eo_support
Posted: Wednesday, October 7, 2015 7:38:25 AM
Rank: Administration
Groups: Administration

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

VisibleElementIds works by setting everything other than those ID's style.display to none before the conversion. If for whatever reason your master page's content is rendered inside the VisibleElementIds, or your VisibleElement is not properly closed thus will include the undesired content, then you must make sure the undesired contents are not inside the VisibleElement (for example, by changing your master page's HTML layout or by properly close your HTML element). If none of those work, you can change your master page's code to explicitly set the offending portion's Visible to false only when you perform conversion.

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.