Image split when table cell goes over 2 pages

Stimulsoft Reports.NET discussion
Post Reply
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Image split when table cell goes over 2 pages

Post by John »

Hallo Support,

I have an mrt template which I load in my c# code and then I assign a DataSet to it.
In the template (see page 3 of the attached .mrt file in the zip) there are parent-child tables defined. In the child table there is a mixture of images and text.

The problem I have is that when the text is so long that the table cell extends over 1 page, the images become split (see screenshots below). Is there a way to avoid this? I have tried setting "CanBreak" for both the images and the containing DataBand but this did not help.

Thanks and regards,

John Kitching
Attachments
1582.24_01_2012.zip
(50.35 KiB) Downloaded 226 times
1578.Page2.jpg
1578.Page2.jpg (62.92 KiB) Viewed 2329 times
1577.Page1.jpg
1577.Page1.jpg (100.39 KiB) Viewed 2329 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Image split when table cell goes over 2 pages

Post by Alex K. »

Hello,

This image break is due to the fact that you set the GrowToHeidht property.
So I would like to clarify something. How the image should be output in your report in this case?

Thank you.
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Image split when table cell goes over 2 pages

Post by John »

Hallo Aleksey,

to answer your question - the icon should be vertically in the middle of the cell if possible. If the cell takes up less than one page this is no problem as that already works fine. If it goes over 2 pages then the icon should be completely displayed on the first page. If it is not possible to display it in the middle of the page, then at the top would also be ok but then the black line below it should be at the same position as where the texts end (e.g. further down).
I tried removing "GrowToHeight=true" and got the result as in the screen shot here, which is not suitable.
Any idea what I can do?

Best regards,

John K.
Attachments
1596.Page3.jpg
1596.Page3.jpg (69.1 KiB) Viewed 2291 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Image split when table cell goes over 2 pages

Post by HighAley »

Hello.

We'll try to do it using script in event. We need some additional time to prepare the answer for you.

Thank you.
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Image split when table cell goes over 2 pages

Post by John »

Ok thanks, look forward to reading your reply.

Regard,

J.K.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Image split when table cell goes over 2 pages

Post by Ivan »

Hello,

Please check the modified report sample in atachment.

We add two variables to the dictionary and use the scripts in the following events:
- BeginRender of the report,
- GetImageData of the problem images,
- EndRender of the report.

Thank you.
Attachments
1629.ComparisonTable 2.zip
(12.02 KiB) Downloaded 234 times
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Image split when table cell goes over 2 pages

Post by John »

Hallo Ivan,

that's an interesting solution. I've added to my project and tested it - it works fine.

Thanks very much.

John K.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Image split when table cell goes over 2 pages

Post by Andrew »

Hello,

Great!

Have a good day!
Thank you.
Post Reply