Set Image resolution in Microsoft Report (RDLC in VS2008)

Posted on 2013-02-07
Last Modified: 2013-02-15
I am using Microsoft Reporting in VS 2008 (using VB.NET).  My application is used to produce a number of printed documents.  Each report uses an image as the Page Header.  These images are stored in the database but the issue I'm describing also happens if I embed the image in the design and use it directly that way.

The problem is that these images, correctly sized to print 18cm wide x 2.5cm high, do not fit on the report.  They are too big.  

I have worked out that the problem is because they are being treated as 96dpi, regardless of their actual resolution.  So a 300dpi image appears over 3 times the size it should as it is being treated as 96dpi. (source:

If I create an image of the correct size at 96dpi then this works but 96dpi is too low a resolution for printed output.  In researching this, there seems to be a solution by setting the resolution once the image is loaded into the report but I can't find details to make this work.

Any idea how I can create an A4 page header (18cm x 2.5cm @ 300dpi) and get it to fit correctly on my documents without reducing the resolution, so lowering the quality?
Question by:WestcountryBusiness
  • 4
  • 3
LVL 12

Accepted Solution

Harish Varghese earned 500 total points
ID: 38868716

Are you creating reports using Report Server Business Intelligence project? I am able to use high resolution images in the reports without any issue.

Or are you creating a web application using reportviewer control and displaying the image inside that? If so, I have not created such applications and do not have much idea about it. Please see if you find something useful ine below link:


Author Comment

ID: 38868797
Hi Harish,

It is a Windows Forms application using the Microsoft Report Viewer control to view the reports.  I design the report from within Visual Studio 2008 which creates an RDLC file within my application.  I call report as an embedded resource.

Thanks for the link.  I'm just finishing work for the weekend now, but I'll take a look through it as soon as I get chance to see if it offers a solution.

Thanks for your help.

LVL 12

Expert Comment

by:Harish Varghese
ID: 38870698
Hi Jon,

I created my first forms application with ReportViewer control.
What I found is that when you use the image as background image of the report, then there is no control over the size of the image.
But when I used the image in an image control, then the image takes the exact size of the image control. Though I could not find any option to maintain the width-height proportion of the image while resizing the image control, I think that would not be a problem for you since your image has a fixed size (18cm wide x 2.5cm high).

Please see screenshot of the report below. The big image is used as background image. The small one is an image control. The overlapping table is to show that you can keep other controls on top of the image.
Hope this helps. Good luck.

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.


Author Comment

ID: 38875144
Moring Harish,

Thanks for your help.  In the application I am working on I want to give the end user the option of customising their reports by adding their own header.  I was hoping to create it so the user can create an image or whatever size & shape they want to offer flexibility.

Originally I had a very small image element positioned top left of the page with the idea that it would just print the user's selected image in it's original size & resolution.  It now seems this may not possible.

My work around was to create a fixed size image.  I see that if I do this and set the properties of this to fit proportional then I can use a high quality image and have it print correctly.  This means that I must specifiy that the end user's own images for page heading have to be of a specific proportion, which reduces flexibilty but I can probably live with that.  

However the tip about using a scanned image of a standard from as a background image is helpful for another job I have to do, so thanks for that.

I'm going to leave this question open a little longer in case anyone comes up with a method to solve my original problem.  If I don't get it, then I will go ahead with this compromise solution.

Many thanks for your support.

LVL 12

Expert Comment

by:Harish Varghese
ID: 38875686

I just found that the Image control to use in RDLC in VS 2010 has "Fit Proportional" property. So that may help you, if you can use VS 2010 instead of VS2008.

LVL 12

Expert Comment

by:Harish Varghese
ID: 38875709
Yes, I tried in VS 2010 with images coming from database and it works perfect.

Author Closing Comment

ID: 38892219
so it looks like there's no way to do exactly what I wanted to (use 300dpi images as image objects in a report & get the to size correctly automatically), so the work around solution of setting the image object as a fixed size and using the size proportional option will have to suffice as the best alternative.

Thanks for your help, Harish.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get id from json Data with NewtonSoft 3 35
How to tell the version of visual studio used for a certain project. 3 24
SQL Login 17 40
Javascript and Jquery not firing 9 43
Written by Valentino Vranken. Introduction: The first step of creating a SQL Server Reporting Services (SSRS) report involves setting up a connection to the data source and programming a dataset to retrieve data from that data source.  The data…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now