Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4695
Export to PDF with row multiline
posted

Dear all,

I am using below comand to export the information with ultragrid to PDF.

If  the rows height is not sufficient to display the information in the PDF, How can I do?

I don't want to set the ultragrid properties such as rowsizing and cellmultiline. Can I set in the ultraGridDocumentExporter???

ultraGridDocumentExporter.Export(reportList, section)

report.Publish(dest, FileFormat.PDF);

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    You have to set CellMultiline on the column, but you do not have to set it on the on-screen grid.

    When you export to PDF, the UltraGridDocumentExporter creates a clone of the grid's DisplayLayout. So you can handle the BeginExport event and modify the e.Layout property any way you like and this will affect the export without affecting the grid on the screen. So you can do something like this:

    e.Layout.Bands[0].Columns["My column"].CellMultiline = true;

Children