Lary Yenta Member Licensed User Longtime User May 9, 2015 #1 Okay, I have succeeded in creating an html file with my glucose reading report which I can read fine on my pc. I wanted to use the WebView component to read the file on my tablet. I have tried this, but it shows nothing on the screen: Code: Copy Sub btn1_Click Dim T1 As String T1= File.DirDefaultExternal & "/" & "GluRpt.html" WebView1.LoadUrl(T1) End Sub I know that someone will know the answer as to what I amn doing wrong here. Regards, lary
Okay, I have succeeded in creating an html file with my glucose reading report which I can read fine on my pc. I wanted to use the WebView component to read the file on my tablet. I have tried this, but it shows nothing on the screen: Code: Copy Sub btn1_Click Dim T1 As String T1= File.DirDefaultExternal & "/" & "GluRpt.html" WebView1.LoadUrl(T1) End Sub I know that someone will know the answer as to what I amn doing wrong here. Regards, lary
LucaMs Expert Licensed User Longtime User May 10, 2015 #2 Code: Copy WebView1.LoadUrl("file://" & File.Combine(File.DirDefaultExternal, "GluRpt.html")) Upvote 0
Lary Yenta Member Licensed User Longtime User May 10, 2015 #3 Thanks for the response LucaMs. I Tried that but the message that I get is "File not found". I know that the file is there because I can browse to it but I don't understand why I can't get it to display? Regards, Lary Upvote 0
Thanks for the response LucaMs. I Tried that but the message that I get is "File not found". I know that the file is there because I can browse to it but I don't understand why I can't get it to display? Regards, Lary
Reviewnow Active Member Licensed User Longtime User May 10, 2015 #4 try WebView1.LoadUrl("file:///" & File.Combine(File.DirDefaultExternal, "/GluRpt.html")) Upvote 0
Lary Yenta Member Licensed User Longtime User May 10, 2015 #5 Ok, Tried that and I got the following message.... Attachments Screenshot_2015-05-10-11-05-26.png 78 KB · Views: 502 Upvote 0
Reviewnow Active Member Licensed User Longtime User May 10, 2015 #6 you have to do it on the live device Upvote 0
Lary Yenta Member Licensed User Longtime User May 11, 2015 #7 Hi there, Reviewnow. I have tried it live and a few different ways but no luck. Perhaps the proble is that my main test unit is a Nexus 7 which only uses an emulated SDCard. I find it strange though. If anyone has any suggestions I would welcome them. Regards, lary Upvote 0
Hi there, Reviewnow. I have tried it live and a few different ways but no luck. Perhaps the proble is that my main test unit is a Nexus 7 which only uses an emulated SDCard. I find it strange though. If anyone has any suggestions I would welcome them. Regards, lary