B4J Question webview showing blank page

Discussion in 'B4J Questions' started by le_toubib, Mar 30, 2015.

  1. le_toubib

    le_toubib Active Member Licensed User

    hello there
    i 'm using this code to load html from a file into a webview
    however there result is a blank page
    what am i doing wrong :
    Code:
    Sub showpreview

        
    Dim tr As TextReader
        
    Dim fn As String
        fn =  dirname & 
    "w_" & acet1.Text.Replace(" ","_") & DateTime.Date(DateTime.Now) & "/" &  "report_for_browser.html"
        tr.Initialize(
    File.OpenInput(File.Dirapp, fn))
        Webview1.LoadHtml(tr.ReadAll)
        Webview1.Visible=
    True


    End Sub
    indeed the sub is accessible when called, and file can be opened in any browser, i tried .loadhtml method to load the text directly from a string , but same results
    thanks
     
  2. le_toubib

    le_toubib Active Member Licensed User

    sorry i now know my sin
    i initialized it while i added it in scene builder
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice