473,320 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help.. Need to convert HTML to image file

1
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
Mar 13 '08 #1
3 1525
kunal pawar
297 100+
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.ContentType="image/jpeg"
Mar 13 '08 #2
Plater
7,872 Expert 4TB
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.ContentType="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.
Mar 13 '08 #3
I use WebsitesScreenshot dll for this. this .net component can be used in any .net language. you just try this, it's easy to use.
Dec 4 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Zhao Sheng | last post by:
http://www.guangmingsoft.com/htmltoimage/help.htm Html To Image Html To Image 2.0 Released! Html To Image help you convert html page from any URL to image or thumbnails easily and quickly. ...
0
by: sudhirpkumar | last post by:
Hi, Can anybody tell me how to create xml file by checking with schema. that is i want code to create a xml file which will check with xsd file while writing xml file.
6
by: vighnesh | last post by:
Hi Folks I am dealing with a project in which I have to convert the image files as PDF files. Can anyone please suggest how can we achieve that. I tried on google for it, but I found some...
5
by: paulmcnally | last post by:
Hi, I need a javascript RegExp for image file validation from a file upload form. I need to allow image files only (jpeg/jpg/gif/png) can anybody help me please? thanks,
0
by: senthilnathan1985 | last post by:
Hi, Am implementing asp.net in my project . and am new to asp.net. In my project i convert one file(.doc) to another file (.pdf) format i don't know how to convert this can you please...
0
by: aris1234 | last post by:
hello.. How to upload image file in page update ..?? i have logic like this : if user upload new image then old image must delete and update DB used new name if user not upload new image then...
5
by: gnkt4ujt2002 | last post by:
hi frnds in using vb.net i want to read or convert any image file to HEX code ..actually i want to send wallpaper to a mobile phone using gateways
0
by: chithrausha | last post by:
Iam having an HTML file where in iam writing some text and it has some background image embedded in it.i want to convert that html file to image file and want to export it in pdf format.(without...
8
by: psantosh12 | last post by:
Hello Everyone, I need help to convert html file to Txt file, If there is any tool or software please let me know Regards Santosh
5
by: jettimadhu | last post by:
Hi , I want to convert the HTML/XML file to all other Ms-office file extentions like .ppt,.pptx,.docx.... Is there any API' s to get a possible solution for this problem?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.