Table cell with long text -> breaking over pages problem
Posted: Tue Nov 12, 2013 12:46 pm
Hallo Support,
I have an issue where I have a table in a report in which long texts are to be displayed. There are two problems:
1. There are blank pages before the table starts
2. The contents of the cells with long texts are not displayed completely and the table just stops, as shown here:
Unfortunately, it is not as simple as setting CanBreak=true for everything (which I have tried). The reason is as follows:
The report is generated from scratch in c# code and is not a static template. For one, until runtime it is not known how many columns must be displayed, and secondly, the contents of 1 column are normally mixed. By this I mean 1 cell might have an icon in it and the cell below it in the same column has a checkbox or just text. The only way I could find to achieve this was by building the table, cell by cell in code and setting the contents using events. This has worked fine for over 2 years now.
I have included a zip file with an mrt which reproduces the issue. Data in the form of xml and xsd is also included. It seems to me that the table becomes disoriented - seeing as it overlaps the page footer. I've tried everything I can think of to get it work but nothing made a difference. Maybe it's necessary to add a post-rendering event to reposition the table or cells in some way..
Many thanks in advance.
John Kitching
I have an issue where I have a table in a report in which long texts are to be displayed. There are two problems:
1. There are blank pages before the table starts
2. The contents of the cells with long texts are not displayed completely and the table just stops, as shown here:
Unfortunately, it is not as simple as setting CanBreak=true for everything (which I have tried). The reason is as follows:
The report is generated from scratch in c# code and is not a static template. For one, until runtime it is not known how many columns must be displayed, and secondly, the contents of 1 column are normally mixed. By this I mean 1 cell might have an icon in it and the cell below it in the same column has a checkbox or just text. The only way I could find to achieve this was by building the table, cell by cell in code and setting the contents using events. This has worked fine for over 2 years now.
I have included a zip file with an mrt which reproduces the issue. Data in the form of xml and xsd is also included. It seems to me that the table becomes disoriented - seeing as it overlaps the page footer. I've tried everything I can think of to get it work but nothing made a difference. Maybe it's necessary to add a post-rendering event to reposition the table or cells in some way..
Many thanks in advance.
John Kitching