Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to convert html to pdf using C# tried to do but got error

How to convert html to pdf using C# tried to do but got error

Scheduled Pinned Locked Moved C#
questioncsharphtmlhelptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    YiXiang_89
    wrote on last edited by
    #1

    Hi all, How to convert html to pdf? I am using Itextsharp.dll as my library, cause i found 2 other library but are under License so i cant use it i tried to follow the ExpertPDF method of geting the property but i just cant not get it to work private PdfDocument GetPDFConverter() { int pageWidth = 0; int pageHeight = 0; PdfDocument pdfConverter = new PdfDocument(pageWidth, pageHeight); <-- (The type 'iTextSharp.text.pdf.PdfDocument' has no constructors defined) pdfConverter.GetRight = false; <--error also return pdfConverter; } How can i do it? As i not sure how to read the data from the library Thank You

    J C 2 Replies Last reply
    0
    • Y YiXiang_89

      Hi all, How to convert html to pdf? I am using Itextsharp.dll as my library, cause i found 2 other library but are under License so i cant use it i tried to follow the ExpertPDF method of geting the property but i just cant not get it to work private PdfDocument GetPDFConverter() { int pageWidth = 0; int pageHeight = 0; PdfDocument pdfConverter = new PdfDocument(pageWidth, pageHeight); <-- (The type 'iTextSharp.text.pdf.PdfDocument' has no constructors defined) pdfConverter.GetRight = false; <--error also return pdfConverter; } How can i do it? As i not sure how to read the data from the library Thank You

      J Offline
      J Offline
      Jack Li
      wrote on last edited by
      #2

      http://www.codeproject.com/KB/cs/pdfizer.aspx[^] download this file!

      1 Reply Last reply
      0
      • Y YiXiang_89

        Hi all, How to convert html to pdf? I am using Itextsharp.dll as my library, cause i found 2 other library but are under License so i cant use it i tried to follow the ExpertPDF method of geting the property but i just cant not get it to work private PdfDocument GetPDFConverter() { int pageWidth = 0; int pageHeight = 0; PdfDocument pdfConverter = new PdfDocument(pageWidth, pageHeight); <-- (The type 'iTextSharp.text.pdf.PdfDocument' has no constructors defined) pdfConverter.GetRight = false; <--error also return pdfConverter; } How can i do it? As i not sure how to read the data from the library Thank You

        C Offline
        C Offline
        Curtis Schlak
        wrote on last edited by
        #3

        I would follow Yusuf[^]'s advice below where you posted a very similar question[^].

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups