the best way to print form to PDF?

0
hello all!   I want to make one quotation tool, in which a PDF quotation sheet need to be printed out after all information is ready in the form list. I tried the two widgets “ Print Screen to PDF” and “Screen Shot” which seems to be good choice, but found they only make screen shot as a picture, not real PDF form. therefore, the resolution of it is not good and layout is weired. also tried “document. file” to make one, but it seems not work.   does anyone know a better way to do this? thanks!
asked
9 answers
1

Hi Kardos,

 

Have you tried the normal Document Template that is standard in Studio Pro? It takes a lot of time styling and it doesn't offer you that much flexibility, but it does give the option to create custom documents like word or pdf from scratch.

https://docs.mendix.com/refguide/creating-your-own-documents/ 

answered
0

Hi kardos,

you can also try PrintClass module to generate the form as pdf where pop up will be displyed to save it as pdf or it can also be printed

Print Class Module:

https://marketplace.mendix.com/link/component/203450

answered
0

Finally chose Document.Template to do PDF print, it works good so far only found the dynamic data doesn’t be printed out… guess the Read/Write rights have not been set. But after set and re-try, the error below comes when trigger the PDF print microflow. when cancling security and re-try, error disappear but still without dynamic data. does anyone know what is the cause and how to fix?

 

 

answered
0

Template:

 

PrintResult:

answered
0

YES,I think there is actual data based on the pic. Below:

 

answered
0

below you can see my module and microflow:

answered
0

This is what you are missing. You are not setting the association on the creation.

answered
0

sorry the pic was earlier before, had corrected it tonight as below, but no use

answered
0

template

 

answered