Image split when table cell goes over 2 pages
Image split when table cell goes over 2 pages
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
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 (62.92 KiB) Viewed 2328 times
-
- 1577.Page1.jpg (100.39 KiB) Viewed 2328 times
Image split when table cell goes over 2 pages
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.
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.
Image split when table cell goes over 2 pages
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.
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 (69.1 KiB) Viewed 2290 times
Image split when table cell goes over 2 pages
Hello.
We'll try to do it using script in event. We need some additional time to prepare the answer for you.
Thank you.
We'll try to do it using script in event. We need some additional time to prepare the answer for you.
Thank you.
Image split when table cell goes over 2 pages
Ok thanks, look forward to reading your reply.
Regard,
J.K.
Regard,
J.K.
Image split when table cell goes over 2 pages
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.
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
Image split when table cell goes over 2 pages
Hallo Ivan,
that's an interesting solution. I've added to my project and tested it - it works fine.
Thanks very much.
John K.
that's an interesting solution. I've added to my project and tested it - it works fine.
Thanks very much.
John K.
Image split when table cell goes over 2 pages
Hello,
Great!
Have a good day!
Thank you.
Great!
Have a good day!
Thank you.