244
Views
2
Comments
Solved
Export a content of a container to a PDF

Hi everyone

I have a screen that generates a preview of a document to a container. And I want to export that container content to a PDF.

Currently I am using de the Plug-in "Ultimate PDF", but this plug-in is printing the all screen content including buttons.

Anyone has a sugestion to solve my problem?

Note:I'm working in reactive.

Thank you

2026-03-12 06-20-48
KUNDAN CHAUHAN
Champion
Solution

Hi David Matos,

Use this forge component 

https://www.outsystems.com/forge/component-overview/9761/reactive-print-pdf-button

It provide a button to print your content anything you want just provide Id of the content .

It take two input parameter  

        1 =  ContainerId

        2 = FileName

For containerId you provide container name + .Id

Ex: if my container name is MyContainer   

  then,            ContainerId =  MyContainer.Id

above image    ContainerId =Invoice.Id

It print only you want to need not anything else on entire screen.

Attach demo URL please check it :

https://personal-ddjq2r3a.outsystemscloud.com/Print/Invoice?_ts=637923525467539929

 also attach .oml file

Thanks

Invoice_Print.oml
2018-10-29 08-31-03
João Marques
 
MVP

Hi David,


I would suggest to isolate that container content in a block.

You can use this block on the preview and on a new screen, which is the screen you would actually be printing. In this case, you reuse what you've built and can print the screen, as expected by the UltimatePDF forge component.


Kind Regards,
João

2026-03-12 06-20-48
KUNDAN CHAUHAN
Champion
Solution

Hi David Matos,

Use this forge component 

https://www.outsystems.com/forge/component-overview/9761/reactive-print-pdf-button

It provide a button to print your content anything you want just provide Id of the content .

It take two input parameter  

        1 =  ContainerId

        2 = FileName

For containerId you provide container name + .Id

Ex: if my container name is MyContainer   

  then,            ContainerId =  MyContainer.Id

above image    ContainerId =Invoice.Id

It print only you want to need not anything else on entire screen.

Attach demo URL please check it :

https://personal-ddjq2r3a.outsystemscloud.com/Print/Invoice?_ts=637923525467539929

 also attach .oml file

Thanks

Invoice_Print.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.