How to avoid reducing the width of the columns?

Asked

Viewed 171 times

1

I’m using the itextsharp library for PDF reporting and although I can generate documents with a nice layout and assign specific widths through an array of dimensions :

Tabela.SetWidths(VetorDeLarguras)

However, when the number of columns in my table is too large, then the library ends up reducing the width of the columns so that other columns can occupy space in the table. Is there any way to prevent this automatic reduction in column width? even if the table extrapolates the page.

Grateful.

1 answer

1


There is a PdfPtable.SetTotalWidth(float[] columnWidth) fixing the width of the columns in absolute values.

To write only the columns that are intended per page we have PdfPTable.WriteSelectedRows().

Browser other questions tagged

You are not signed in. Login or sign up in order to post.