export into PDF everything in a panel content using C#
<p>I have a panel and inside the panel there is a gridview and charts(fusion-chart).  What i am trying to do is to export everything in the panel as a image into PDF.  So far, i am only able to export the gridview and the chart is not showing up at all.  How can i export everything in the panel content as image into pdf format?  pls. help.  Here is my code:
I am using ITEXT Sharp</p>

<pre><code>protected void btnExport_Click(object sender, EventArgs e)
{
    Response.ContentType = "application/pdf";
    Response.AddHeader("content-disposition", "attachment;filename=Panel.pdf");
    Response.Cache.SetCacheability(HttpCacheability.NoCache);
    StringWriter sw = new StringWriter();
    HtmlTextWriter hw = new HtmlTextWriter(sw);
    pnlPerson.RenderControl(hw);
    StringReader sr = new StringReader(sw.ToString());
    Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 100f, 0f);
    HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
    PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
    pdfDoc.Open();
    htmlparser.Parse(sr);
    pdfDoc.Close();
    Response.Write(pdfDoc);
    Response.End();

}
</code></pre>
