Help.. Need to convert HTML to image file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaggi
    New Member
    • Mar 2008
    • 1

    Help.. Need to convert HTML to image file

    Hi,

    I need to convert HTML file to any image file. I need to get it done in c#.NET only.
    Could you please suggest me some ways of doing it.

    Thanks,
    Zaggi
  • kunal pawar
    Contributor
    • Oct 2007
    • 297

    #2
    try this

    I think if u set ur page content type as Image/jpeg then ur page content will appear as Image in browser
    so set ur contenttype as image
    Response.Conten tType="image/jpeg"

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Originally posted by kunal pawar
      try this

      I think if u set ur page content type as Image/jpeg then ur page content will appear as Image in browser
      so set ur contenttype as image
      Response.Conten tType="image/jpeg"
      That works if you are sending byte data from an image (jpeg)

      However if you have a bunch of html controls and what not and want an image representation of how they would look, it won't work.

      If you are in a windows application, you can add an instance of the WebBrowser object and can generate a picture from that object I think. Other then that I don't know, and would be curious to hear an answer.

      Comment

      • Farhomar
        New Member
        • Aug 2007
        • 6

        #4
        I use WebsitesScreens hot dll for this. this .net component can be used in any .net language. you just try this, it's easy to use.

        Comment

        Working...