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

Image renders large in html

4 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin P
Top achievements
Rank 1
Martin P asked on 12 Oct 2008, 07:35 PM
Hi, I have an image with details listed below in a PictureBox which in report designer shows desired size 6cm / 4cm and when using webview it prints and pdfs ok at 6x4 but the html render in the browser shows at (I'm guessing) 700px / 470px (only shows a small portion of the image as its constrained within the picturebox size of 6x4)

I'm happy with the output to print and pdf but is there a way of scaling the image so it also looks in the html render?

I tried the sizing options by these didn't seem to make any difference, also tried reducing the image rez so it fitted it all outputs ok but the print and pdf quality suffered too much.

Image dimensions:
H-Res: 300
Phy-Dim: 700, 470
PixelFormat: Format24bppRgb
RawFormat: Png
V-Res: 300

cheers
Martin

4 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 13 Oct 2008, 08:56 AM
Hello Martin,

The web friendly resolution of an image is usually 72 or 96 dpi and that is what it should be to display properly in html view. If you want you can use different images for html and other formats - take a look at this KB article that elaborates on differentiating for the html/some other format.

All the best,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Martin P
Top achievements
Rank 1
answered on 13 Oct 2008, 11:11 AM
Hi Steve, thanks for the reply and link, looks like it'll do the job perfectly.

As always in these forums I've received a prompt, full and relevant response, I think it's definitely worth congratulating you and the Telerik support team for excellent support and customer service, not every company offers this!

Many thanks
Martin
0
Steve
Telerik team
answered on 13 Oct 2008, 11:32 AM
Thanks Martin,

We always do our best in meeting our customers' expectations - we're glad it is appreciated.

Once again, thank you for your kind words - they really make our day better.


Sincerely yours,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Imran
Top achievements
Rank 1
answered on 28 Sep 2013, 11:47 PM
i have same issue. In KB article its text box databound, while i am using picture box. what i need to change?
Tags
General Discussions
Asked by
Martin P
Top achievements
Rank 1
Answers by
Steve
Telerik team
Martin P
Top achievements
Rank 1
Imran
Top achievements
Rank 1
Share this question
or