Click or drag to resize

IReportingService Interface

provides access to the SSRS ReportingService (currently ReportingService2005 which works with SQL-Server 2005 and later) web service. This interface is implemented by the NetQuarry.Reporting.ConfigurationManagerReportConfig service. At this time this interface is used to provide support for snapshot reports. The methods provided here can be organized into two different groups:

Low level methods for directly interacting with SSRS history reports:

Higher level methods for managing report snapshots:

Namespace:  NetQuarry.Reporting
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public interface IReportingService

The IReportingService type exposes the following members.

Methods
  NameDescription
Public methodCreateHistory
Creates a report history, the basis of a snapshot. The history report is created by SSRS and SSRS generates it's history ID. There are some significant limitations to this process:
  • The SSRS history ID is really a timestamp with one second granularity. That means we MUST NOT create two snapshots within the same second
  • The history ID is specific to the report so the same history ID may be used by another report and is not unique by itself.
  • Creation of the history report involves setting the report's default parameters globally. This would affect any reports run using the default values.
The CreateSnapshot(IAppContext, Report, String, SnapshotParameters, Object) method provides functionality such that the caller does not need to deal with these limitations except that history reports should not be created for reports where the default parameter values may be used for purposes other than history reports.
Public methodCreateSnapshot
Create a new snapshot report. Internally CreateHistory(IAppContext, Report, Object, String, SnapshotParameters) us used to command SSRS to create a history report. This method provides additional functionality to support multi-tenancy and other security measures. Once created, snapshot reports may be run via RunSnapshot(IAppContext, Int32).
Public methodDeleteHistory
Delete the specified SSRS history report. Note that if SSRS throws a ReportHistoryNotFoundException exception, that exception is caught and not propagated, and false is returned.
Public methodHistoryExists
Determines whether or not the specified SSRS history report exists. An SSRS history report is the basis of a snapshot.
Public methodHistorySize
Gets the size, in bytes, of the specified SSRS history report, or zero if the report is not found.
Public methodRunSnapshot
Top
See Also