Android Question Best way to output tables

msali

Member
Licensed User
Longtime User
Hi,
I have finally reached at the stage in my project where i need to produce output.

Can anyone guide me on the best way to produce output that would contain multiple tables with different colors. In my application i would like to:


a) show the output on their devices so that they can zoom it too
b) email it to them if option is clicked.

I was looking into using webview. Is that the right choice? If yes, can you please share some basic code for writing tables and producing an output file to be sent via email.

Thanks in adv.

regards.
 

LucaMs

Expert
Licensed User
Longtime User
Another option is to use the Excel library to create an Excel file.

I have not found an Excel library for B4A.

I found, however, the documentation, so I suppose it is part of the core libraries of B4A > 3.00 (mine).


(Perhaps it would be useful a note on B4A version next to the name of the library, in the documentation)
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Upvote 0

msali

Member
Licensed User
Longtime User
Thanks for your responses. I will surly checkout the Excel Library tonight; but a quick question on it:

How will users be able to view the output file on their devices if they do not have any Excel or Excel viewer installed on their device?




Regarding the DBUtils.ExecuteHtmlQuery; the data that i want to print in tables is not placed in SQLite, rather it is in OS file as a MAP:

B4X:
    Dim raf As RandomAccessFile
    raf.Initialize(Main.gdataDirFull , selectedRoundID, False)
    raf.WriteEncryptedObject(mapStoreRound, selectedRoundID, raf.CurrentPosition)
    raf.Close

and read back the same way.

(so i assume it will not work that way) - right?

regards.
 
Upvote 0

msali

Member
Licensed User
Longtime User
I fianlly used webview and drew good old HTML. Now working perfectly well.

Thanks.
 
Upvote 0
Top