Solved

Resize container to accommodate an image size

Posted on 2014-02-11
3
875 Views
Last Modified: 2014-02-27
Hi,

Im using SSRS 2008R2 and I need to replace a rectangular logo in the header of the report (image is stored in a table in the database) for a new square logo with different dimensions.

This image is likely to change over time again and I'd like to get a dinamic way of adjusting the space to fit as close as possible to the size of the image to waste as little paper as possible.

The width is not much of an issue but the lenght is. I've try to put it inside a rectangle, but when the logo is a bit longer than the current one the rectangle doesn't grow and cuts the image halfway through.

I always work with an image specifically designed (and sized) to use in reports and letters so I've set the size of the image to 'original size'.

Any suggestions?

Thanks,
0
Comment
Question by:monserob
3 Comments
 
LVL 22

Expert Comment

by:Nico Bontenbal
ID: 39852527
I've tested it with an image without an rectangle and it seems to work fine. See the attached example. Please let me know why this setup is not working for you, and why you use a rectangle.
ImageSize.rdl
0
 
LVL 5

Accepted Solution

by:
Leon Kammer earned 250 total points
ID: 39852536
As far as I am aware, I have not seen any way of accomplishing what you are after that is 100% perfect

I remember some years ago attempting what you are trying to do, but eventually ended up creating 2 reports to house 2 different sized images inside the tablix for the reports.

That being said, I did come across something some time ago that used a div, which worked great, until you tried to print it out, then the images reverted to their size based on the original tablix dimensions.

Hope this helps.

Cheers

Leon
0
 

Author Comment

by:monserob
ID: 39852738
Thank you Nicobo. Your sample just ilustrates my problem. when you are in the print layout mode (not just preview) you can see that the high blue picture is cut and only shows the top that can be fit in the header. The header does not grow to accommodate the full length.

Thanks Leon, I'm starting to think like you and it may not be a way of achieving what I want.
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Suggested Solutions

In this short article I will be talking about two functions in the SQL Server Reporting Services (SSRS) function stack.  Those functions are IIF() and Switch().  And I'll be showing you how easy it is to add an Else part to the Switch function. T…
Time Corrections for Reports Working with a report, we made some interesting discoveries about the time corrections/updates We are using the following Parameters: Starting Entered Date (Date) formatted as Data type: "Date/Time" Ending Entered …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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