Hi,
I fill a tableview from an SQlite query, then send the data to a html table which the user can print.
After filling the table, I read the data back into a list ready to print, if the user has clicked a column header and resorted the data, this is not reflected in the printed output, what am I missing..
Thanks
I fill a tableview from an SQlite query, then send the data to a html table which the user can print.
After filling the table, I read the data back into a list ready to print, if the user has clicked a column header and resorted the data, this is not reflected in the printed output, what am I missing..
Thanks
Read tableview:
lst.Initialize
lst.AddAll(tvData.Items)
For i=0 To lst.Size-1
For j= 1 To 5 'read columns
strValue=""
If val(j) <>Null Then strValue=val(j).Replace(CRLF,"<br/>")
If strValue.Length<600 Then
Report=Report &"<td>" & strValue &"</td>"
Else
Report=Report & "<td>-</td></tr></table><table><tr><td width='100%'>"& strValue&"</td></tr></table><table><tr>"
Report=Report & strFormat
End If
Next
Report=Report&"</tr><tr>"
Next
Report=Report&"</tr></table>"
File.WriteString("C:\temp", "list.html",Report&"</font></body></html>" )
fx.ShowExternalDocument(File.GetUri("c:\temp", "list.html"))