Roger Daley Well-Known Member Licensed User Longtime User Jan 7, 2016 #1 Hi All, I have a HTM file which is displayed using "ShowExternalDocument" B4X: Sub Help_action fx.ShowExternalDocument(File.GetUri(DataFolder, "helpfile.htm")) End Sub This works well with one small issue, graphics don't show. If I open the HTM file directly from FireFox the graphics show correctly. Has anyone experienced this and possibly a cure? Regards Roger Last edited: Jan 7, 2016
Hi All, I have a HTM file which is displayed using "ShowExternalDocument" B4X: Sub Help_action fx.ShowExternalDocument(File.GetUri(DataFolder, "helpfile.htm")) End Sub This works well with one small issue, graphics don't show. If I open the HTM file directly from FireFox the graphics show correctly. Has anyone experienced this and possibly a cure? Regards Roger
eurojam Well-Known Member Licensed User Longtime User Jan 7, 2016 #2 Hi Roger, I would suggest to embedd the graphics into your HTML document as base64 encoded strings. something like: B4X: <img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." /> https://www.base64-image.de/ best stefan Upvote 0
Hi Roger, I would suggest to embedd the graphics into your HTML document as base64 encoded strings. something like: B4X: <img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." /> https://www.base64-image.de/ best stefan
Roger Daley Well-Known Member Licensed User Longtime User Jan 7, 2016 #3 Hi Stefan, I have to come clean, it is really a word document saved as HTM. I am not to sure about embedding in a word document. I am on the run at the moment but will give it a try when I can. Regards Roger Upvote 0
Hi Stefan, I have to come clean, it is really a word document saved as HTM. I am not to sure about embedding in a word document. I am on the run at the moment but will give it a try when I can. Regards Roger
eurojam Well-Known Member Licensed User Longtime User Jan 8, 2016 #4 May be you should consider PDF file as an alternative B4X: fx.ShowExternalDocument(File.GetUri(DataFolder, "helpfile.pdf")) Upvote 0
May be you should consider PDF file as an alternative B4X: fx.ShowExternalDocument(File.GetUri(DataFolder, "helpfile.pdf"))
Roger Daley Well-Known Member Licensed User Longtime User Jan 8, 2016 #5 Stefan, Good lateral thinking. Works fine. Still a bit of a puzzle with the HTM file but I'm happy with the pdf. Many thanks Roger Upvote 0
Stefan, Good lateral thinking. Works fine. Still a bit of a puzzle with the HTM file but I'm happy with the pdf. Many thanks Roger
eurojam Well-Known Member Licensed User Longtime User Jan 8, 2016 #6 Thanks Roger, your example came to the right moment, because I started today work on the help section of my B4J App... stefan Upvote 0
Thanks Roger, your example came to the right moment, because I started today work on the help section of my B4J App... stefan