I am trying to load a *.csv file that was created by using Table2d.SaveTableToCSV(File.DirRootExternal, "1.csv") into Webview. The problem I having is a CRLF issue. All my rows displayed in webview are running together as if it is one continuous string. There is no CRLF. If I view the .Csv file using windows wordpad each row of my table is correctly displayed on it's own line.
This is my activity module for displaying the *.csv into webview.
This is my activity module for displaying the *.csv into webview.
B4X:
Sub Process_Globals
End Sub
Sub Globals
Dim WebView1 As WebView
Dim myHTML As String
End Sub
Sub Activity_Create(FirstTime As Boolean)
myHTML = File.ReadString(File.DirRootExternal,"1.csv")
myHTML = myHTML.Replace(Chr(10), Chr(10) & Chr(13))
Activity.LoadLayout("WebView")
WebView1.LoadHtml(myHTML)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub