Text position in table cell when split over 2 pages

Stimulsoft Ultimate discussion
Post Reply
User avatar
John
Posts: 128
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Text position in table cell when split over 2 pages

Post 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.
Attachments
LongTexts.pdf
(305.7 KiB) Downloaded 243 times
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

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

Post 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.
User avatar
John
Posts: 128
Joined: Tue Feb 01, 2011 3:56 am
Location: England

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

Post 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.
Attachments
R2.pdf
(790.95 KiB) Downloaded 205 times
R2.mrt
(3.32 MiB) Downloaded 211 times
R2.cs
(5.09 MiB) Downloaded 216 times
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

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

Post 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.
User avatar
John
Posts: 128
Joined: Tue Feb 01, 2011 3:56 am
Location: England

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

Post by John »

Super, thanks very much. I'll give it a try.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello

We are always glad to help you!

Thank you.
Post Reply