locked
HtmlParser RRS feed

  • Question

  • User-592976280 posted
    It gives compilation error: The name 'HtmlParser' does not exist in the current context.

    HtmlParser.Parse(iTextSharpDocument, htmlDoc);

    Do I need to download HtmlParser dll and place it in the bin folder? If so, where can I download it from?

    What else do I need to add (what reference)? Thanks.

     

    Tuesday, July 8, 2008 9:17 AM

Answers

  • User-592976280 posted
    I added

    using iTextSharp.text.html;

    and that works.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 8, 2008 2:43 PM

All replies

  • User-592976280 posted
    I added

    using iTextSharp.text.html;

    and that works.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 8, 2008 2:43 PM
  • User-1528435673 posted

     

    Hi, can anyone help me in using iTextSharp library. Iam creating a pdf file using this and then I have to fill 3 tables in the pdf with different data. But the tables are attached to each other. I want to put some gap / space between them so that to distinguish them uniquely.

    can anyone tell me how to use html tags with this library to achieve my target.

     

    Thanks,

     

    Monday, April 27, 2009 7:06 AM
  • User-480628609 posted

    I added

    using iTextSharp.text.html;

    and that works.

     

    I'm having the same problem and I have that line (kindof) because I'm not using C#.

    Friday, March 19, 2010 9:54 AM
  • User1223646670 posted

    Hi,

    I have tried recently and i have added using iTextSharp.text.html; but still im getting error does not exists in current context

    Thanks in Advanced

    Sunday, August 21, 2011 1:43 PM
  • User1223646670 posted

    Hi,

    I have tried and works fine

    Document document = new Document(PageSize.A4, 80, 50, 30,65 );

    PdfWriter.GetInstance(document, new FileStream(FileNamewithPath, FileMode.Create));
    document.Open();
    Paragraph newpara = new Paragraph(strHTML.ToString());
    document.Add(newpara);
    
    
    No need to use HtmlParser as above senario
    
    
    Thanks in Advaced
    Sunday, August 21, 2011 2:20 PM
  • User1223646670 posted

    Does not working.

    Tuesday, August 23, 2011 9:34 AM