Results 1 to 3 of 3

Thread: [RESOLVED] HTML to image

  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Resolved [RESOLVED] HTML to image

    Hi,

    I'm looking for a piece of code to convert an HTML file or code to an image file. I tried to do some search on google, I found a few but it only works on Windows application not web (asp.net).
    I'm basically trying to convert a formatted html page to an image at the server side. I was wondering if you have any suggestions.

    Thanks

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: HTML to image

    The browser is who renders the image - I cannot see how you can ask the browser from the server side to do a screen capture.

    I believe there are HTML browser like controls you can use in code - but you have backend code without a form here - that's going to present a bit of a challenge.

    Do you have any JavaScript running that you might be able to work with?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #3

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: HTML to image

    Thx for the help, I ended up taking a different approach which worked fine for my need. I used the graphics drawString... instead of converting html to image.

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width