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

Picturebox size - local/remote discrepancies

1 Answer 10 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Atlas
Top achievements
Rank 1
Atlas asked on 30 Apr 2013, 03:18 PM
Hello all!

I currently have a telerik report that I render in PDF that has two pictureboxes with set sizes. One picturebox's sizing property is set to stretch, while the other is set to ScaleProportional. On my local development environment, this report is rendered and displayed correctly. The pictureboxes behave as expected. When I publish to my server, the pictureboxes are distorted in size and completely throw off my report layout. Has anyone experienced this before, and what are some possible issues that I can look into? Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Accepted
Adam
Top achievements
Rank 1
answered on 01 May 2013, 01:35 PM
We have observed this behavior when developing on Windows 7 and deploying to the server; the issue turned out to be that the default DPI settings in Windows 7 (under your Display Settings) is "Medium, 125%".  This causes any elements specified in pixels widths to draw unexpectedly different when rendered into a PDF on the server.

You can also see the report "messed up" in a similar fashion if two developers pull up the designer with one having Medium (125%) and one having Small (100%) selected in the display preferences.

The only work around that I have is to specify the sizes in inches.
Tags
General Discussions
Asked by
Atlas
Top achievements
Rank 1
Answers by
Adam
Top achievements
Rank 1
Share this question
or