This project has moved and is read-only. For the latest updates, please go here.
1

Closed

Row with long text in cell break report generation

description

I have datasourse which contains long text in one of row in one of cell.

After request to generate Pdf report, it generates, but not contain row with long text and all next rows.
Seems like a bug.

reproduce steps: add datasource with 1500 symbols in one of cell

file attachments

Closed Sep 2, 2014 at 10:04 PM by VahidN

comments

VahidN wrote Jan 24, 2014 at 10:36 AM

Hi,
I can't reproduce it. The long text will be displayed in multiple lines. Here is the sample with "LastName2".PadRight(1500,'A') in one cell to test:
https://pdfreport.svn.codeplex.com/svn/Samples/PdfReportSamples/LongTextInCell/
If your text is vanished, it could be result of the encoding or Unicode issues. Please attach your not working sample.

wrote Jan 24, 2014 at 11:28 AM

devi_ous wrote Jan 24, 2014 at 11:28 AM

There is attached small project to example issue.

datasource contains 3 rows but rendered only first

VahidN wrote Jan 24, 2014 at 2:55 PM

You can fix it this way
            .MainTablePreferences(table =>
            {
                table.ColumnsWidthsType(TableColumnWidthType.Relative);
                //table.NumberOfDataRowsPerPage(50); // don't set this line and let the PdfRpt calculate it automatically.
                //for long texts larger than a page
                table.SplitLate(false);
                table.SplitRows(true);
            })

devi_ous wrote Jan 24, 2014 at 7:48 PM

I'll try this later. Thank you for a quick response!

wrote Sep 2, 2014 at 10:04 PM