tdocs2 Well-Known Member Licensed User Longtime User Aug 21, 2015 #1 Greetings once more. As I get deeper into B4J, I recognize how powerful it is. I also recognize that I am really a real newbie! I beg your indulgence in asking these questions, but I cannot find these answers in the documentation or the forum. I discovered the powerful HTMLEditor Control - WOW! It is nice. However, I am stumped as to how to save the HTMLEditor.Text to a file and conversely, how to get it. Any guidance will be appreciated. Sandy
Greetings once more. As I get deeper into B4J, I recognize how powerful it is. I also recognize that I am really a real newbie! I beg your indulgence in asking these questions, but I cannot find these answers in the documentation or the forum. I discovered the powerful HTMLEditor Control - WOW! It is nice. However, I am stumped as to how to save the HTMLEditor.Text to a file and conversely, how to get it. Any guidance will be appreciated. Sandy
tdocs2 Well-Known Member Licensed User Longtime User Aug 21, 2015 #2 Is it as simple as this? B4X: File.WriteString("C:\Dir1\Settings","TestHTML.htm",HTMLEditor1.HtmlText) Upvote 0
Is it as simple as this? B4X: File.WriteString("C:\Dir1\Settings","TestHTML.htm",HTMLEditor1.HtmlText)
ThRuST Well-Known Member Licensed User Longtime User Nov 19, 2016 #4 And how do you read it? It was part of your question which was not answered, so I ask the same one year later Upvote 0
And how do you read it? It was part of your question which was not answered, so I ask the same one year later
ThRuST Well-Known Member Licensed User Longtime User Nov 19, 2016 #5 Nevermind I solved it myself, it was easy. To load it back into the HTMLEditor you do : B4X: HTMLEditor.HtmlText = File.ReadString("c:\subfolder\","TestHTML.htm") Upvote 0
Nevermind I solved it myself, it was easy. To load it back into the HTMLEditor you do : B4X: HTMLEditor.HtmlText = File.ReadString("c:\subfolder\","TestHTML.htm")