Share via


SRSProxy.renderReportToFile Method [AX 2012]

Renders a Microsoft SQL Server Reporting Services report and saves the results in the specified file and file format.

Syntax

public Array renderReportToFile(
    str _reportPath, 
    CLRObject _parameterValueArray, 
    str _fileName, 
    SRSReportFileFormat _fileFormat, 
    str _deviceInfo, 
   [str _executionID])

Run On

Called

Parameters

  • _reportPath
    Type: str
    Path to the report in Reporting Services.
  • _parameterValueArray
    Type: CLRObject Class
    An Array that contains ParameterValue objects.
  • _fileName
    Type: str
    The path and name of the file to be created.
  • _deviceInfo
    Type: str
    The device-specific information that is used by Reporting Services for printing the specified file format.
  • _executionID
    Type: str
    The execution ID of an earlier report run, which is provided when report output must be archived; optional.

Return Value

Type: Array Class
A String array that contains the names of the files that were created.

Remarks

The function has two purposes:

  1. The function sends the report to a file.

  2. The function sends a previously run report to a file, depending on the execution ID that is provided.

See Also

Reference

SRSProxy Class