print PDF - which one works?

1
I have tried the widget “PrintScreen FileDocuent” – then I get “[object Promise]” error when putting content on pages. If I use the “PrintScreen” widget, the app will hang when trying to print. Any working solution to print pages?
asked
3 answers
3

From your question it is not inmediately clear which widget you have use. Try to always use the name as in the marketplace. But we have used this widget to grab screenshots: https://marketplace.mendix.com/link/component/27069 and that one works.

Regards,

Ronald

 

 

answered
1

Hi Martin,

 

Please take a look into this as well JFree Charts  https://marketplace.mendix.com/link/component/3011

This allows to take a screen into image and export as PDF on click as well.

We used in one of the project and worked well, when compared to Print page to PDF module.

answered
0

Ronald, I used excactly that widget you recommended.
Unfortunatelly the result is not good:

  • the text referenced are no longer resolved but only shown as [object Promise]

  • if I press the print button, the progress bar does never stops

Thats how I created it:

  • There is a container, call PrintContainer1

  • In this container is the PrintScreen widget

  • And also the dataGrid containing the data to be shown

 

 

answered