Convert HTML to RTF
-
Here's one way: 1. Display the HTML to be converted in a browser. 2. Press Ctrl-PrtScn to get a screen shot. 3. Start WordPad. 4. Press Ctrl-V to paste the screen shot. 5. Select File | Save As in WordPad. 6. Save as a .rtf file. And you have the HTML converted to rtf without any 3rd party tools.
Alan take a bow! You deserve MVP for that one answer!
Panic, Chaos, Destruction. My work here is done.
-
Alan take a bow! You deserve MVP for that one answer!
Panic, Chaos, Destruction. My work here is done.
I never thought it as a hard task as that...... :(( I don't have months to spare for this....
-
Hello, I am in searchof a method that converts my HTML input into RTF. I don't want to have any 3rd party tools to do it. Can anyone help me to achieve this? Thanks in advance. Sebastian
try to put it in a Richtextbox and start from there. You'll probably have to manually escape the tags and replace them by rtf codes. (Readme's via google).
V.
Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive -
I never thought it as a hard task as that...... :(( I don't have months to spare for this....
Any conversion between two formats can be problematic. In most cases the 'owners'of the formats generally provide the API's to convert. IF you are using MS Orifice, you can open HTML files and then save them to rtf; this can be done programatically.
Panic, Chaos, Destruction. My work here is done.
-
I never thought it as a hard task as that...... :(( I don't have months to spare for this....
If you don't mind a few shortcomings, why don't you just try using Word: let it open the HTML document and save as RTF. Warning: make sure not to have it save any HTML, Word's idea of HTML is a bit fundamentalist. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
Any conversion between two formats can be problematic. In most cases the 'owners'of the formats generally provide the API's to convert. IF you are using MS Orifice, you can open HTML files and then save them to rtf; this can be done programatically.
Panic, Chaos, Destruction. My work here is done.
Thats a great input for me.... I will go ahead with this.... Thanks a lot Sebastian
-
If you don't mind a few shortcomings, why don't you just try using Word: let it open the HTML document and save as RTF. Warning: make sure not to have it save any HTML, Word's idea of HTML is a bit fundamentalist. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
Luc Pattyn wrote:
Word's idea of HTML is a bit fundamentalist.
Fundamentalist?? That's too "warm and fuzzy" a description for what Word considers HTML. No, I think "Jihad", "Shock and Awe", "GBU-43/B Massive Ordnance Air Blast bomb", ... those are a bit more accurate.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Luc Pattyn wrote:
Word's idea of HTML is a bit fundamentalist.
Fundamentalist?? That's too "warm and fuzzy" a description for what Word considers HTML. No, I think "Jihad", "Shock and Awe", "GBU-43/B Massive Ordnance Air Blast bomb", ... those are a bit more accurate.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008I plead guilty. :-O My preference for understatement goes pale next to your highly accurate politico-military jargon. BTW: I'm beginning to worry about your long-term MS MVP status now. I wouldn't want to see another one go down and switch to Mac misery.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
I plead guilty. :-O My preference for understatement goes pale next to your highly accurate politico-military jargon. BTW: I'm beginning to worry about your long-term MS MVP status now. I wouldn't want to see another one go down and switch to Mac misery.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
I'm not an MS MVP anymore. I'm spending way too much time with my 15 month old son to keep up on MS's and CodeProject's stuff at the moment.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
I'm not an MS MVP anymore. I'm spending way too much time with my 15 month old son to keep up on MS's and CodeProject's stuff at the moment.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008Good choice. And yeah, your sig tricked me. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.