[]
        
(Showing Draft Content)

C1.Ssrs.ReportSession

ReportSession Class

Represents a connection to the report on the SSRS server.

Inheritance
ReportSession
Implements
Namespace: C1.Ssrs
Assembly: C1.Document.dll
Syntax
public class ReportSession : ConnectionBase, IDisposable

Constructors

Name Description
ReportSession()

Properties

Name Description
DefaultPageLayout

Gets the PageLayout object specifies the default report page settings.

ExecutionID

Gets the ID of SSRS session.

Parameters

Gets the list of parameters of the currently loaded report.

ReportAddress

Gets the ReportAddressBase object defines report address currently opened.

ReportPath

Gets the report path currently opened.

Methods

Name Description
ApplyParameterValues(ParameterValue[], CancellationToken)

Sets and validates parameter values associated with the loaded report.

CheckReportPath(string)

For internal use only.

Dispose()

Releases all resources used by the ReportSession object.

FromExecutionParameter(ParameterValue)
FromValidValues(ValidValue[])
GetContent(int, int, ReportFormat, PageLayout, int?, int?, CancellationToken)

Generates report in specific format. startPageIndex and pageCount specify range of pages, set pageCount to 0 to request all pages of the report.

GetContent(string, string, CancellationToken)

Gets report content in specific format.

GetDocumentMap(CancellationToken)

Returns the report document map (report outlines), can be called only after GetContent(string, string, CancellationToken) method.

GetPageCount(ReportFormat, PageLayout, CancellationToken)

Returns count of pages in the report.

NavigateBookmark(string, CancellationToken)

Navigates to a specific bookmark in the report.

NavigateDocumentMap(string, CancellationToken)

Navigates to a specific section of the report.

Open(ReportAddressBase, CancellationToken)

Loads a report, this report should be called before calling any other methods of the ReportSession.

RefreshParameters(IList<ParameterValue>, CancellationToken)

Refreshes list of parameters.

SetConnectionOptions(string, ConnectionOptions)

Sets the current connection options.

Sort(string, SortDirectionEnum, bool, CancellationToken)

Applies or removes a sort for the report based on a user sort action.

ToExecutionParameter(ReportParameter)
ToExecutionParameters(ReportParameter[])
ToggleItem(string, CancellationToken)

Toggles the show/hide item in a report.