Report generation in PDF

0
Hi Reader,   I have a list of records in an entity. I want to download these records in the form of a PDF. How can I do this?   Thanks and Regards, Harshraj Singh
asked
5 answers
0

See documentation here: https://docs.mendix.com/refguide/generate-document/  and here https://docs.mendix.com/refguide/document-templates/

Regards,

Ronald

 

answered
0

Hi Harshraj Singh,

Right click on your module → click on add others menu → there are some list of of option in the there was an document template menu with there use that one for creating the template.

Once you create the template then you can use those template in your microflow in your PDf generating part.
Regards,
Dhanalakshmi.R

answered
0

Hi Harshraj Singh,

 

I am not sure how much you know about creating PDFs in mendix. but you will need the following

 

  • Create your PDF template by adding it to your module and then on the template add your data grid with the data source as your chosen entity
  • Now create a microflow and retrieve the data you want in a list, after the retrieve create a new filedocument object and after that add the generate pdf activity
  • in the generate pdf activity add the file document object, choose your pdf template that you created and then in the parameter list at the bottom, just add your list as the varible needed.
  • Then add the download activity to downlaod your pdf.
answered
0

Hi Harshraj, 

 

Please find the documentation below which helps to create pdf templates

 

https://docs.mendix.com/refguide7/how-to-create-your-own-documents/#43-the-document-template

answered
0

Hi Harshraj, 

Once file is generated , you can add change activity and change the name attribute of your file document object

 

I hope this helps you 

answered