Android Question Code module?

Dman

Active Member
Licensed User
Longtime User
I have a few reports in my app that are created using the pdfwriter library. The reports are set up in a few different activities. I would like to have the reports in 1 place that can be accessed from any other activity. That way if I change or add a new report, I only have to change or add it once.

I created a test app to try to get it working but am having no luck. I can see the data that is created by using PDFWriter1.outputToScreen but it never goes any farther after PDFWriter1.ConverseDocument by going to the PDFWriter1_ConversionDone (content As String) sub.

Is a code module not what I need here?
 

LucaMs

Expert
Licensed User
Longtime User
I state that I have never used the pdf and neither those functions, but if I understand correctly you will need to handle an event, then the best solution is to create a class (an object from a class), which will contain and provide the pdfs and will be able to handle events.
 
Upvote 0

Dman

Active Member
Licensed User
Longtime User
I can successfully create an report with this but am running into a small issue when trying to add a signature image. The way I have always done this was to add an imageview to the layout, load it with the bitmap(signature image) and add the pdfwriter.addimage line. This has worked great. However trying to switch this to a class, I am having problems trying to create and or load a bitmap file into it.

Anyone have any ideas?
 
Upvote 0
Top