### Load HTML File

To read the content of a HTML file located in the DirApp Folder, several solution possible.
Example
Define the webview and the hrml file to load
`Sub Process_Globals
Private CAPPHELPFILE As String = "help.html"
Private wvwMessage As WebView
...
End Sub`
Option 1 using LoadUrl (Best option)
Try
wvwMessage.LoadUrl("file:///" & File.Combine(File.DirApp, CAPPHELPFILE))
Catch
wvwHelp.LoadHtml("

## Error

Can not read the Help file:

" & CRLF & LastException.Message & "

")
End Try
Option 2 using File
Try
wvwMessage.LoadHtml(File.ReadString(File.DirApp, CAPPHELPFILE))
Catch
wvwHelp.LoadHtml("

## Error

Can not read the Help file:

" & CRLF & LastException.Message & "

")
End Try
Option 3 using TextReader
Dim tr As TextReader
Try
tr.Initialize(File.OpenInput(File.DirApp, CAPPHELPFILE))
wvwMessage.LoadHtml(tr.ReadAll)
Catch
wvwHelp.LoadHtml("

## Error

Can not read the Help file:

" & CRLF & LastException.Message & "

")
End Try

Changed: , Category: WebView, File: T6C284M2133.htm, ID: 2133