IReportingServiceCreateHistory Method |
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.
Namespace:
NetQuarry.Reporting
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax string CreateHistory(
IAppContext cxt,
Report report,
Object mapper,
string reportName,
SnapshotParameters snapshotParams
)
Function CreateHistory (
cxt As IAppContext,
report As Report,
mapper As Object,
reportName As String,
snapshotParams As SnapshotParameters
) As String
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - report
- Type: NetQuarryReport
The report for which to create a history item. - mapper
- Type: SystemObject
The related mapper. - reportName
- Type: SystemString
The name of the report for which to creat a history item. - snapshotParams
- Type: NetQuarry.ReportingSnapshotParameters
The snapshot parameters for the report.
Return Value
Type:
StringThe SSRS history ID for the newly created history.
See Also