How to create a button to generate pdf report

Hi everyone,

I want to create a button that can retrieve of an id from the data displayed and use that id to fetch data from database and use the data in generated report in new screen.

I don’t want to use report generator. I want to code report generator in my controller so what should I do. I also want to retrieve data by using SQL command.

Please help me and Thanks in advanced.


Hi, Syamil.

I recommend you to take a look at the following guide:

This helped me a lot.