Setting the height for check boxes cells in a table

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

Setting the height for check boxes cells in a table

Post by John »

Hallo Support,

I have c# code which creates a StiTable and a mixture of text cells and checkbox cells. For the text cells, the WordWrap, CanGrow, and GrowToHeight properties are set to true. The table uses styles for odd and even rows. When a text does not fit in one text cell it automatically breaks over 2 or more lines. The height of the cell then grows. The other text cells in the row also grow accordingly - no problem. Now the difficult part: the height of the check box cells should also grow but the size of the checkbox itself (in my case either a tick or a circle) should remain the same. I can't get this to work. If I set GrowToHeight=true for a checkbox then all the heights match in the row and the even/odd styling is correct but the size of the checkbox itself is now larger, which is not what I want. The checkbox should remain the same size and the spacing above and below it should increase. How can I do this? I tried also CanGrow, but this made no difference.

I'd send you a screenshot but I haven't found out how to do it.

Best regards,

John Kitching
Attachments
964.CheckboxProblem.jpg
964.CheckboxProblem.jpg (17.73 KiB) Viewed 3967 times
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Setting the height for check boxes cells in a table

Post by Andrew »

Hello,

Thank you for the question.

To attach a screenshot, please login and see the screenshot which button you must click to attach an image.

Waiting for your screenshot! :biggrin:
Thank you.
Attachments
962.02.png
962.02.png (46.38 KiB) Viewed 3970 times
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Setting the height for check boxes cells in a table

Post by John »

Hallo Andrew,

thanks for the info. I've added the screenshot now. I hope it's clear what I mean.

Regards,

John Kitching
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Setting the height for check boxes cells in a table

Post by Alex K. »

Hello,

Please see the sample report in attachment.

Thank you.
Attachments
975.SampleReport.mrt
(32.72 KiB) Downloaded 388 times
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Setting the height for check boxes cells in a table

Post by John »

Hi,

thanks for the download example. I've had a good look at it and can see that it is what I require. What I don't understand is how you managed to split what looks like a normal column into 3 columns: spacers left and right, and the checkbox in the middle. The separating marks between the columns are different from normal - normally there is a clear black dividing line. In this case there is a dashed line.
Can you please explain how these cells were created.

Many thanks,

John Kitching
Attachments
977.CheckboxProblem2.jpg
977.CheckboxProblem2.jpg (25.24 KiB) Viewed 3949 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Setting the height for check boxes cells in a table

Post by Alex K. »

Hello,

You can add by columns to the left and to the right and then set the borders.

Thank you.
Attachments
980.Screen01.png
980.Screen01.png (39.84 KiB) Viewed 3943 times
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Setting the height for check boxes cells in a table

Post by John »

Great,

I've finally understood it now!

Thanks very much.

Regards,

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

Setting the height for check boxes cells in a table

Post by Andrew »

Hello!

Perfect! :biggrin:
Post Reply