Welcome Guest Search | Active Topics | Sign In | Register

Converting part of ASPX web Page to PDF Options
Geordi
Posted: Wednesday, June 5, 2013 11:12:10 AM
Rank: Newbie
Groups: Member

Joined: 6/3/2013
Posts: 6
I am in the process of evaluating your product - Converting ASPX to PDF. Following is my question.

How to convert the following Panel tp PDF . I like to see C# Code using your product
<asp:Panel id="Panel1" runat="server">
<table >
<tr>
<td>
</td>
</tr>


</table>
</asp:Panel>

Let me know. Thanks
eo_support
Posted: Wednesday, June 5, 2013 11:24:48 AM
Rank: Administration
Groups: Administration

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

You can do the following before calling RenderAsPDF:

HtmlToPdf.Options.VisibleElementIds = Panel1.ClientID;

Here is the documentation for this property:

http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfoptions.visibleelementids.aspx

Internally ASPXToPDF uses EO.Pdf to convert the page, so you can use almost all HTML to PDF options. However you will need to reference EO.Pdf.dll before you can use any EO.Pdf features directly:

http://www.essentialobjects.com/doc/4/install/project_setup.aspx

Hope this helps. Please feel free to let us know if you still have any questions.

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.