70-466 · Question #125
You are developing a SQL Server Reporting Services (SSRS) sales summary report. The report header consists of several images. You need to ensure that the header of the report is hidden when a user exp
The correct answer is C. = (Globals!RenderFormat.Name = "PDF"). SSRS exposes the Globals!RenderFormat object to let report designers conditionally show or hide elements based on the current export format, such as PDF.
Question
Options
- A= True
- B= False
- C= (Globals!RenderFormat.Name = "PDF")
- D= (Globals!RenderFormat.IsInteractive = False)
How the community answered
(29 responses)- A10% (3)
- B3% (1)
- C72% (21)
- D14% (4)
Why each option
SSRS exposes the Globals!RenderFormat object to let report designers conditionally show or hide elements based on the current export format, such as PDF.
Setting Hidden = True unconditionally hides the header in all rendering formats, including interactive web views, which is not the requirement.
Setting Hidden = False unconditionally shows the header in every format, including PDF and print, which is the opposite of the requirement.
The expression (Globals!RenderFormat.Name = "PDF") evaluates to True only when the report is rendered as PDF, causing the hidden property to activate and suppress the header. This directly targets the named PDF format without affecting interactive HTML rendering. It is the most precise expression for hiding content on PDF export.
Globals!RenderFormat.IsInteractive = False evaluates to True for all non-interactive formats including Excel, Word, and CSV - not just PDF and print - making it broader than required and potentially the wrong choice when only PDF export must be targeted.
Concept tested: SSRS conditional visibility using RenderFormat globals
Source: https://learn.microsoft.com/en-us/sql/reporting-services/report-design/built-in-collections-built-in-globals-and-users-references-report-builder
Topics
Community Discussion
No community discussion yet for this question.