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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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!
|