Page 1 of 1

Text position in table cell when split over 2 pages

Posted: Fri Oct 02, 2020 1:35 pm
by John
Dear Team,

in the attached pdf there is part of a table, generated dynamically in c# code at runtime. Normally, the text in each cell is displayed vertically in the middle. This is fine unless the text is long and split over 2 pages, as is the case here. Is there any trick you know (maybe using some EndRender method) where the code can locate these texts and set them to vertical align => Top? You can see what I mean in the attachment where just one word ("Beruf") is on the next page and I'd like it at the top of the page.

Thanks very much.

John K.

Re: Text position in table cell when split over 2 pages

Posted: Mon Oct 05, 2020 6:46 am
by Lech Kulikowski
Hello,

Please send us a sample report with test data for analysis. We will try to find a solution for you.

Thank you.

Re: Text position in table cell when split over 2 pages

Posted: Mon Oct 05, 2020 11:09 am
by John
Normally, I'd send you a template (MRT file) and a dataset. However, in this case, there is no template. The report is created without one in code at runtime. Furthermore, there is no dataset since each cell in the table receives its contents using an event.
I set a breakpoint after Render() and have saved the report as best I could. I couldn't get the mrt file to open in the designer - it crashed it!

If there were just some way at runtime for a StiTableCell to know "my text is split over two pages", that would probably be enough information for me to find a solution. Sorry I can't give you any more Information than this.

Re: Text position in table cell when split over 2 pages

Posted: Tue Oct 06, 2020 6:31 pm
by Lech Kulikowski
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.

Re: Text position in table cell when split over 2 pages

Posted: Thu Oct 22, 2020 1:35 pm
by Lech Kulikowski
Hello,

We have added a small improvement. Now if you set the property
StiOptions.Engine.MarkBreakedText = true
then for Breaked textboxes "#breaked#" will be written to the TagValue property of the textbox.

Thank you.

Re: Text position in table cell when split over 2 pages

Posted: Tue Oct 27, 2020 2:47 pm
by John
Super, thanks very much. I'll give it a try.

Re: Text position in table cell when split over 2 pages

Posted: Tue Oct 27, 2020 9:46 pm
by Lech Kulikowski
Hello

We are always glad to help you!

Thank you.