Progress® Telerik® Reporting R1 2021
ReportPackager Class
Packages and unpackages report documents in TRDP format. This is a zipped, XML-based file
format for representing report documents. Starting with Telerik Reporting Q2 2016, the TRDP have
become the default target file format for Telerik Report Designer and Telerik Report Server.
Inheritance Hierarchy
SystemObject
Telerik.ReportingReportPackager
Namespace:
Telerik.ReportingTelerik.ReportingReportPackager
Assembly: Telerik.Reporting (in Telerik.Reporting.dll)
Syntax
The ReportPackager type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ReportPackager |
Initializes a new instance of the ReportPackager class.
|
Methods
Name | Description | |
---|---|---|
![]() | Package(String, Stream) | |
![]() | Package(IReportDocument, Stream) |
Packages the specified report instance and writes
the package to the specified Stream.
|
![]() | Unpackage |
Unpackages the TRDP document contained by the specified Stream.
|
![]() | UnpackageDocument |
Unpackages the TRDP and TRBP documents contained by the specified Stream.
|
Examples
The following example demonstrates how to package a report definition instance:
The following example demonstrates how to package a XML report definition:
The following example demonstrates how to unpackage a .TRDP report definition:
var report = new Report1(); var reportPackager = new ReportPackager(); using (var targetStream = System.IO.File.Create("PackageReport1.trdp")) { reportPackager.Package(report, targetStream); }
var reportPackager = new ReportPackager(); using (var targetStream = System.IO.File.Create("PackagedReport2.trdp")) { var xmlString = System.IO.File.ReadAllText("Report1.trdx"); reportPackager.Package(xmlString, targetStream); }
Version Information
Supported in: 1.0.1