My advice is to use something else. iText is not a generic html
converter.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Ramanath M. Kamath
> Sent: Monday, October 15, 2007 11:00 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Problem while creating pdf file
> from ASP.NET pageusing itextsharp.dll
> Importance: High
>
> Hello,
>
> We have created an aspx page containing controls like HTML
> tables, panels and grid views. The page uses a master page.
>
> To export the content to PDF format, we have placed required
> page content in <div> tags. In code behind function, we are
> taking content inside div tags and appending to string,
> loading as XML file and then parsing to HTML using ITextsharp
> function "HtmlParser.Parse ()"
>
> Example
> <td style="height: 253px; vertical-align: top; text-align:
> left; width: 33%">
>
> <asp:Panel ID="pnlConflictSide1ClientMatter" runat="server"
> BorderWidth="1px" BackColor="white"
>
> Height="250px" ScrollBars="Both" Width="100%">
>
> <div id="pdfGenerate4">
>
> <asp:GridView ID="grdConflictSide1ClientMatter"
> runat="server" GridLines="None" Height="100%"
>
> Width="100%" AutoGenerateColumns="False" HorizontalAlign="left">
>
> <Columns>
>
> <asp:BoundField DataField="Side1" HeaderText="SIDE 1" />
>
> </Columns>
>
> <HeaderStyle HorizontalAlign="Center" />
>
> </asp:GridView>
>
> </div>
>
> </asp:Panel>
>
> </td>
>
> ==============================================================
> ====================================
>
> The function which exports the page content to pdf is in
> attached file (Function_CreatePdf.txt). The pdf generated is
> also attached (Report480703.pdf).
>
> Problem Faced: The tables / grid views in the aspx page are
> not displayed in proper format after export to PDF file.
>
> Looking forward to get some suggestions at the earliest!
>
>
>
> Thanks
>
> - Ramanath
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/