Hi all
I have an app that I'm writing to print Lesson Plans for me. Everything is working beautifully (thanks Erel) except....
My Lesson Plan is displayed on my device and includes a .jpg logo and this is shown correctly. In order to print the LP I have to email the file to myself which works well but the image is missing. Below is the code I use to generate the header of the LP. What am I missing please?
Many thanks for loking
Penfound
I have an app that I'm writing to print Lesson Plans for me. Everything is working beautifully (thanks Erel) except....
My Lesson Plan is displayed on my device and includes a .jpg logo and this is shown correctly. In order to print the LP I have to email the file to myself which works well but the image is missing. Below is the code I use to generate the header of the LP. What am I missing please?
B4X:
sbHeader.Append("<html><body>").Append(CRLF)
sbHeader.Append("<style type='text/css'>").Append(HtmlCSS).Append("</style>").Append(CRLF)
sbHeader.Append("<table width='" & pnlWidth & "'><tr >").Append(CRLF)
sbHeader.Append("<td style='font-size:20';>Session Plan Open Computing")
sbHeader.Append( "</td><td style='font-size:20;text-align:right';white-space:nowrap;>")
sbHeader.Append("<img src='File:///android_asset/ldlogo.jpg" & "' border=0/></td></tr>")
sbHeader.Append( "<tr><td style='font-size:20;text-align:left';><b>Course:</b> ")
sbHeader.Append(tmpCourse)
sbHeader.Append( "</td><td style='font-size:20;text-align:right';white-space: nowrap;><b>Date:</b> ")
DateTime.DateFormat ="dd MMM yyyy"
Dim ThisTime As String
ThisTime = DateTime.Date(DateTime.Now)
sbHeader.Append(ThisTime)
sbHeader.Append("</td></tr>")
sbHeader.Append( "<tr><td style='font-size:20;text-align:left';><b>Venue:</b> ")
sbHeader.Append(tmpVenue)
sbHeader.Append( "</td><td style='font-size:20;text-align:right';white-space: nowrap;><b>Time:</b>")
sbHeader.Append(tmpTime)
sbHeader.Append( "</td></tr><tr><td colspan='2' style='font-size:20;text-align:left';>" )
sbHeader.Append( tmpReseources)
sbHeader.Append( "</td><td></td></tr><tr><td colspan='2'style='font-size:20;text-align:left';>" )
sbHeader.Append( tmpLiteracy)
sbHeader.Append( "</td><td></td></tr>" )
sbHeader.Append("</table>").Append(CRLF)
sbHeader.Append(sb).Append(CRLF)
sbHeader.Append("</table></body></html>")
File.writestring(File.DirRootExternal,"SessionPlan.html",sbHeader.ToString)
Return sbHeader.ToString
Many thanks for loking
Penfound