Try if this will help. It shows several workarounds: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b9c25fc1-00a5-4957-8f02-f91bf5984d76/how-to-achieve-watermark-underlay-feature-in-ssrs-2008
Watermark an image with reportviewer (full page report)
-
04-06-2022 - |
Question
I know i can watermark an image with reportviewer 2012 in the body part of the page. My report has header and footer, i need watermark an image in angle for the full page, from the bottom-left to the top-right and that will include the header, body and footer.
Any Idea? Thank you.
Solution 2
OTHER TIPS
SSRS doesn't natively have a Watermark function, but you have a couple workarounds.
Fix 1 - Background Image
- Create an image with the watermark you want (save as .bmp)
- Add the image to the report
- Set the Report Body Background property to use the image.
Body Properties
For Step 1, I like the following method:
- Create a Word Document
- Go to Page Layout > Watermark > Custom > and add whatever watermark you want
- Save the Word Document as PDF.
- Open the PDF and Select "Copy File to Clipboard"
- This will create the correct sized image at 612x792. Paste into MSPaint and save as a bitmap. Here's a sample generated image that just says "TEST" that you can use.
Conditionally Applying:
Most times you have a watermark, you want to eventually remove it. Let's say you have a test and production report and you want to toggle the watermark. You can do it like this:
- Add a Boolean Parameter, here called
IsTest
. It should look like this:
On the Body Properties menu, set the background image to use the following formula:
=iif(Parameters!IsTest.Value,"TestWatermark","")
When you're calling the report, make sure to pass in the parameter like this:
report.SetParameters(New ReportParameter("IsTest", appSettings.IsTestEnvironment))
Fix 2 - Text Field
Alternatively, you can do this with a text field for a little less heavy handed of an approach, but it cannot be rotated at a 45o angle.
- Add a text field to the report. Make it large and grey.
- Right click on the text field and click Send to Back so it appears behind all the other elements.
- Make sure that any other fields with a white background have a transparent background, otherwise you'll get a blotchy display.