Showing posts with label image. Show all posts
Showing posts with label image. Show all posts

Wednesday, March 7, 2012

Company Logo in Header of Report Builder

Can you put a company logo at the top of a report when using Report Builder? The documentation indicates the "image" can be place in the report layout.

Is there any way around this limitation?

Thank you.Hi,
You can add images to your reports. But I do not know this is what you are asking?
Just add an image to your Report Project. You will see it in the Reports folder where the rdl files (reports) are.
Then just drag and drop it on the layout of the report to where you want it to place.
Eralper

|||

I can add an image to the design area in Report Builder but I am unable to place the image at the top of the report like you can in Report Designer.

Thanks

|||This is correct - static images cannot be added in Report Builder. You would need to import the report into Report Designer. We are working on adding this support in an upcoming service pack.

Friday, February 24, 2012

Common Image in Reports

I need to display the company logo on 100 odd reports that run from different folders on the report manager. Since the company logo has changed before and we had to change every report, I want the image stored on a server (with SSL on) and want the reports to point to the server. The server is going to be different in development and production environments.

When I try to add the image using "Image Wizard" I get the error "Invalid image.". The wizard wouldn't let me use a function to build the path based on the environment and select the image from the correct server. It doesn't accept anything that doesn't start with "http:" when I select "web" as the image source.

Please Help!!!

Don't serve the image over SSL (which requires https: as the protocol). Why can't the image come from a non secure web address? I assume you are just serving these reports over an intranet?

|||Yes, the reports are rendered on the intranet. Even if I have the image come from a non secure web address, I'd still need to get the image from different web addresses in development and production. Reporting services doesn't let me use a web image, unless I specify a valid web address and to switch between development production I need to have some kind of variable in the address.|||

Hello,

Here's what you can do:

Create your report and add a string parameter (Environment) that you will set for development or production. Set this variable to Internal and give it 2 available values (D and P) with a default of D since this is where you will be testing. Add your image to your report via your web address for your development environment. Click on the image and in the properties window and change the Value property to an expression with something like this:

=Switch(Parameters!Environment.Value = "D", "http://www.DevServer.com/images/DevImage.jpg", Parameters!Environment.Value = "P", "http://www.ProdServer.com/images/ProdImage.jpg")

Now, when you deploy your report to production, go into the properties of your report in report manager and change the value of the Evironment parameter to P.

Jarret

|||Thanks Jarret, I'll try and let you know how it goes!!!