[Html2PdfConverter] Table is printed as a list

Forge Component
(61)
Published on 17 May by Guilherme Pereira
61 votes
Published on 17 May by Guilherme Pereira

I'm using the component and there's a table as shown in the picture, and each time it convert it to PDF it print it as a list, while it should print it in columns with header, any solution for that.



Hi Abeer,

Could it be that your Web Screen is being rendered as responsive smartphone/table? TableRecords behaviour for smartphone seems oddly consistent with what you are seeing there...

Jorge Martins wrote:

Hi Abeer,

Could it be that your Web Screen is being rendered as responsive smartphone/table? TableRecords behaviour for smartphone seems oddly consistent with what you are seeing there...

Yes it's actually rendered as responsive smartphone as u mentioned, do you know how to fix this?


Solution

Please, take a look here: https://www.outsystems.com/forums/discussion/27147/html-to-pdf-generate-pdf/

You have basically two options.
If your page is SilkUi (or OutSystems UI) you can add the NoResponsive class style to the table.

If you want to prevent ANY kind of responsive behaviour you can create an empty theme (not based on Silk UI (OutSystems UI) and duplicate your page on a flow using this new theme and use this page to create the PDF.

Cheers.

Solution

Eduardo Jauch wrote:

Please, take a look here: https://www.outsystems.com/forums/discussion/27147/html-to-pdf-generate-pdf/

You have basically two options.
If your page is SilkUi (or OutSystems UI) you can add the NoResponsive class style to the table.

If you want to prevent ANY kind of responsive behaviour you can create an empty theme (not based on Silk UI (OutSystems UI) and duplicate your page on a flow using this new theme and use this page to create the PDF.

Cheers.


thanks a lot, it works but I have to be using one of the SilkUI Themes.