Skip to content

Add or clear SSRS report parameters

Maintains the internal name/value collection of SSRS report parameters that will be applied on the next Render an SSRS report call.

Field Value
Operation ID OP-RSPRINT-PARAMS
Trigger Caller invokes clsRSPrint.AddParameter(name, value) or clsRSPrint.ClearParameters()
Inputs Parameter name/value (for AddParameter)
Outputs Updated internal NameValueCollection
Primary components clsRSPrint.AddParameter, clsRSPrint.ClearParameters
Entry point SAIF.Services.Printing\clsRSPrint.vb

Steps

  1. AddParameter adds a name/value pair to the internal NameValueCollection used to build SSRS execution parameters on the next Render an SSRS report call.
  2. ClearParameters clears that collection.

Process flow

flowchart TD
    Start([AddParameter or ClearParameters called]) --> Decision{Which method?}
    Decision -->|AddParameter| Add[Add name/value to NameValueCollection]
    Decision -->|ClearParameters| Clear[Clear NameValueCollection]
    Add --> End([Used by next PreviewDocument call])
    Clear --> End

Failure and edge-case behavior

  • No validation of parameter name/value pairs occurs at this stage; unrecognized parameter names would only surface as an error from the SSRS SetExecutionParameters call in Render an SSRS report.*

Sources

  • SAIF.Services.Printing\clsRSPrint.vb