Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RS2008 Background Image Sizing

So I'm attempting to create a report that is able to pre-fill a "government form" with Reporting Services 2008.

Now this all falls down to the 96 DPI issue everyone seems to be having.

Let's say I have a 300 DPI high res JPG file that I want to use as a background image for a report. (This jpg is actually a scan of the government form I'm trying to prefill)

When you set the Fill option of a rectangle object (or even the entire report body) - you have no option but for it to be it's original size. I cannot seem to get the image to fit proportional to the size of my rectangle.

If I add the image as a ... "image object" - I get my desired right shock horror - because I can select the sizing option "fit proportional" and then resize my "image object" as I desire.

BUT - you cannot overlay textboxes over the top of an image object. And because my image object contains fields I'm trying to prefill from a dataset - it fails.

Any ideas?

like image 302
Jamsi Avatar asked Aug 25 '11 11:08

Jamsi


People also ask

How do I resize a background image in CSS?

The background-size CSS property lets you resize the background image of an element, overriding the default behavior of tiling the image at its full size by specifying the width and/or height of the image. By doing so, you can scale the image upward or downward as desired.

How do I make the background image fit my screen size in HTML?

Try this , background: url(../IMAGES/background. jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; For more information , follow this Perfect Full Page Background Image !!

Can we specify the background-size in percentages?

When we set background-size: 113% , it means the the width can be max 113% of the container's width, which would be, 63.28px and this is roughly 50% of the original image's width.


1 Answers

Ok so I managed to figure this out.

For those interested, read this guide and DOWNLOAD THE SAMPLE PROJECT for an example (ignore the stuff regarding showing/hiding high/low res versions - I merely used the example to see how they were able to overlay textboxes ontop of images).

http://www.infoq.com/articles/Gogolowicz-Swanson-SSRS

You need to keep an eye on an objects parent. Keep in mind these notes;

Page_1 rectangle needs to have a parent of BaseRectangle.

Page_1_Image needs to have a parent of BaseRectangle.

All page1 textboxes need to have a parent of the Page_1 rectangle etc.

It all makes sense now.

like image 200
Jamsi Avatar answered Sep 28 '22 12:09

Jamsi