Generate report in pdf

What would you like to see in CSPro?
Post Reply
PHINOJOSA
Posts: 52
Joined: April 16th, 2023, 10:31 pm

Generate report in pdf

Post by PHINOJOSA »

Good afternoon

Dear team of developers, I am writing to ask if it would be feasible to generate reports in PDF format, it would be very useful.

For example, I must carry out a survey of children in which information on anemia and chronic malnutrition will be collected, each with its respective diagnosis, and it would be very interesting to be able to generate a report of all the children with their respective diagnoses in pdf to send to their parents. Parents or the school director at the time, it would be very helpful to be able to generate the report, download it to the cell phone and send that report in PDF via WhatsApp.

And not wait until processing the information on a computer and generating the PDF on a desktop computer, it would be appropriate to provide that information instantly.

I hope that type of reports can be considered.

In reality, it would be useful for any report that you want to issue where you can include an image of the institution or the study in that pdf.

Thank you

Greetings
justinlakier
Posts: 238
Joined: November 21st, 2022, 4:41 pm

Re: Generate report in pdf

Post by justinlakier »

Hello,

See this post on the forums. CSPro does not support directly creating a PDF report. Instead, the solution here is to generate an HTML report, and embed JavaScript which prints the page to PDF. You can find multiple different JavaScript methods and libraries which allow printing from an HTML file to a PDF file.

Hope this helps,
Justin
Post Reply