This is a migrated thread and some comments may be shown as answers.

Left Justify PictureBox in Table

1 Answer 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 17 May 2013, 02:26 PM
I am currently making a report that has images in the table, I have added a row where I merged all the cells together to house the PictureBox. I have selected ScaleProportional because we want to maintain the aspect ratio, however the image always appears centered. We want to have the image left justified but I can't make that happen. In the reports constructor I tried adding

pictureBox1.Docking = DockingStyle.Left;

but it didn't do anything. Is this even possible to do?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 22 May 2013, 03:24 PM
Hello Tom,

Since the only sizing and positioning options are available through the PictureBox.Sizing property, this scenario requires resizing the pictureBox item according to the image data and can be achieved via evaluating the image dimensions and resizing the image and pictureBox item. Please, check the attached sample project that illustrates the suggested approach.

I hope this helps.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Tom
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or