vmars316 Posted June 12, 2015 Share Posted June 12, 2015 Hello & Thanks , I would like to convert .html to .rtf and/or .txt format . I found the following code @ stackoverflow.com/questions/150208/how-do-i-convert-html-to-rtf-rich-text-in-net-without-paying-for-a-component that converts html to rtf . I would like to insert code below , into an html page . Pls , what would the html/javascript (that wraps code) look like ? Using reportWebBrowser As New WebBrowser reportWebBrowser.CreateControl() reportWebBrowser.DocumentText = sbHTMLDoc.ToString While reportWebBrowser.DocumentText <> sbHTMLDoc.ToString Application.DoEvents() End While reportWebBrowser.Document.ExecCommand("SelectAll", False, Nothing) reportWebBrowser.Document.ExecCommand("Copy", False, Nothing) Using reportRichTextBox As New RichTextBox reportRichTextBox.Paste() reportRichTextBox.SaveFile(DocumentFileName) End Using End Using Thanks...Vern Link to comment Share on other sites More sharing options...
justsomeguy Posted June 12, 2015 Share Posted June 12, 2015 That is .NET code. The browser does not execute .NET code, that's for a server running Microsoft IIS. Link to comment Share on other sites More sharing options...
vmars316 Posted June 15, 2015 Author Share Posted June 15, 2015 Using LibreOffice , the best I could with Libre looks like :19 Better to be poor and honest than to be dishonest and a fool.2 Enthusiasm without knowledge is no good; haste makes mistakes.What I am trying to get the text out of is this :https://www.biblegateway.com/reading-pl ... ersion=nlt...Vern Link to comment Share on other sites More sharing options...
justsomeguy Posted June 15, 2015 Share Posted June 15, 2015 If you're looking for a program to convert it looks like this one will:http://docfrac.net/wordpress/ Link to comment Share on other sites More sharing options...
vmars316 Posted June 17, 2015 Author Share Posted June 17, 2015 Hmm... Win7 x64 DocFrac program crashes at each use . Download docfrac-win32-gui-4.0.1-1.exe (4.5 MB) Thanks for your efforts , ...Vern Link to comment Share on other sites More sharing options...
davej Posted June 17, 2015 Share Posted June 17, 2015 I would like to convert .html to .rtf and/or .txt format . "Convert" in what way? Is this some large, complex document? Link to comment Share on other sites More sharing options...
vmars316 Posted June 18, 2015 Author Share Posted June 18, 2015 Hi davej , I want to convert this .html page" https://www.biblegateway.com/reading-plans/chronological/2015/06/09?version=nlt 1st I "save page as" in Chrome browser , then feed this .html into Converter . I would like to convert it into .rtf and .txt . Thanks...Vern Link to comment Share on other sites More sharing options...
davej Posted June 18, 2015 Share Posted June 18, 2015 A .txt file would imply plain text with no formatting. If this is just a one-time task I would simply look at the rendered text in a browser and then copy and paste the text into MSWord or Open Office Writer, where you could then use the formatting features to make it look like the original page (save as .rtf). If you plan to do this for multiple pages then you might want to first create a template page to paste the text into. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now