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

Conditional formatting PictureBox size

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 30 Nov 2012, 10:28 AM
Hello

I'm looking for a solution to modify the company logo size on the report (pdf format) according to the page number it is on.

On first page it should be bigger than the rest of the pages.

Is that in any way possible?

Thanks
Roland

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 04 Dec 2012, 05:36 PM
Hi Roland,

If the PictureBox is located in page section you can set up PictureBox.Value with an expression to an appropriately sized image:
= IIF(PageNumber=1,"image1", "image2")

Another option is to set up a binding to the PictureBox.Size property with an user function as shown in the following example:

public static SizeU ConvertToSizeU(int width, int height)
{
    return new SizeU(Unit.Pixel(width), Unit.Pixel(height));
}

If you are using the Telerik Report Designer check out the Extending Report Designer help article. Kind regards,
Peter
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

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