Hi, export. I want to convert html from a url (let's say http://www.asp.net) to text or to word document. How could I do that? I want to extract the image and other items from the text content, and save them seperately.
You can use HTTPWebRequest class to send http request to the site and get html in reponse. Once you get html in string format you can do whatever you want with it. (save it in text or word...)
Marked as answer by panric on May 15, 2012 02:29 AM
panric
Member
46 Points
19 Posts
convert html from a url to text or word document.
May 14, 2012 06:34 AM|LINK
Hi, export. I want to convert html from a url (let's say http://www.asp.net) to text or to word document. How could I do that? I want to extract the image and other items from the text content, and save them seperately.
jigarbjpatel
Member
454 Points
88 Posts
Re: convert html from a url to text or word document.
May 14, 2012 07:02 AM|LINK
You can use HTTPWebRequest class to send http request to the site and get html in reponse. Once you get html in string format you can do whatever you want with it. (save it in text or word...)
Nasser Malik
Star
11544 Points
1778 Posts
Re: convert html from a url to text or word document.
May 14, 2012 07:31 AM|LINK
already asked. see
http://forums.asp.net/t/1526275.aspx
http://stackoverflow.com/questions/6594874/converting-html-to-word-in-net
Skype: maleknasser1
panric
Member
46 Points
19 Posts
Re: convert html from a url to text or word document.
May 15, 2012 02:29 AM|LINK
Thanks to both of you. Now I can handle it.