### Create HTML File and show in Browser

To create a HTML file and show in the default browser, make use of TextWriter and
ShowExternalDocument (requires the jFX library).
Example
Dim htmlfile As String = "test.html"
Dim tw As TextWriter
Dim CSSStyle As String = "
"
DateTime.DateFormat = "dd.MM.YYY"
tw.Initialize(File.OpenOutput(File.DirApp, htmlfile, False))
tw.WriteLine("" & CRLF & "
")
tw.WriteLine("" & CRLF & CSSStyle & CRLF & "" & CRLF)
tw.WriteLine("
" & CRLF)
tw.WriteLine("

# " & "TITLE" & "

" & CRLF)
tw.WriteLine("

" & "Content" & "

" & CRLF)
tw.WriteLine("

Created " & DateTime.Date(DateTime.Now) & CRLF)
tw.WriteLine("

")
tw.Flush
tw.Close
fx.ShowExternalDocument(File.GetUri(File.DirApp, htmlfile))

Changed: , Category: Files, File: T6C193M1373.htm, ID: 1373