Articles in this section
Category / Section

How to Hide Background Images in Excel Exports in Bold Reports

Published:
Updated:

Bold Reports Designer lets you add background images such as watermarks or company logos to enhance report branding, especially in PDF exports. However, these images may clutter Excel or Word outputs. This guide explains how to show background images in PDF exports and viewer previews while hiding them in Excel exports using conditional visibility.

Step-by-Step Implementation

Step 1: Add a Rectangle as a Container

  1. Open your report in Bold Reports Designer.

  2. From the widget panel, drag and drop a Rectangle onto the report body.

  3. Resize and position the rectangle to cover the desired background area.

    Add Rectangle

Step 2: Insert and Configure the Background Image

  1. Inside the rectangle, add an Image report item.

  2. In the Properties panel, set the Source to one of the following:

    • Embedded (for images stored within the report)
    • External (for URL-based images)
    • Database (for dynamic images)
  3. Select the required image (such as a logo or watermark).

    Set Image Source

Step 3: Send the Image to the Background

  1. Select the Image item.

  2. Right-click and choose Send to Back (or use the toolbar) to place it behind other report elements.

    Send to Back

Step 4: Apply Conditional Visibility (Hide in Excel)

  1. Select the Rectangle (or the Image item directly).

  2. In the Properties panel, go to VisibilityHidden.

  3. Click the expression (fx) button and enter:

    =IIF(Globals!RenderFormat.Name = "EXCEL", True, False)
    

    Conditional Visibility Expression

    How it works:

    • True → the item is hidden.
    • False → the item is visible.
    • When RenderFormat.Name = "EXCEL" → the background image is hidden.
    • For PDF, Viewer, and other formats → the image remains visible.

Step 5: Preview and Export to Validate

Format Expected Result
Preview Background image visible
PDF Export Background image visible
Excel Export Background image hidden
  • Preview Mode

    Preview with Image

  • PDF Export

    PDF with Background

  • Excel Export

    Excel without Background

Conclusion

By placing your background image inside a Rectangle and applying conditional visibility using Globals!RenderFormat.Name, you can:

  • Display watermarks and logos in PDF and viewer previews
  • Hide them in Excel exports to keep data clean and easy to edit

This approach maintains strong branding in printed/PDF reports while ensuring usability in formats meant for further editing.

You can download the sample RDL report from here.

See Also

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied