ClassReportPackager
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.
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
public class ReportPackager
Inheritance: objectReportPackager
Constructors
ReportPackager()
Initializes a new instance of the ReportPackager class.
Declaration
public ReportPackager()
Methods
Package(IReportDocument, Stream)
Packages the specified report instance and writes the package to the specified Stream.
Declaration
public void Package(IReportDocument report, Stream targetStream)
Parameters
report
The Report object to package.
targetStream
Stream
The target stream to write the packaged document.
Remarks
Use the targetStream parameter to specify an object that derives from the Stream class, which is designed to write to streams. Classes that derive from the Stream class include: BufferedStream, FileStream, MemoryStream, etc.
Package(string, Stream)
Declaration
public void Package(string xmlDefinition, Stream targetStream)
Parameters
xmlDefinition
string
targetStream
Stream
Unpackage(Stream)
Unpackages the TRDP document contained by the specified Stream.
Declaration
public Report Unpackage(Stream packageStream)
Parameters
packageStream
Stream
The stream that contains the package to unpackage.
Returns
The Telerik.Reporting object being deserialized.
Remarks
Use the packageStream parameter to specify an object that derives from the Stream class, which is designed to write to streams. Classes that derive from the Stream class include: BufferedStream, FileStream, MemoryStream, etc.
UnpackageDocument(Stream)
Unpackages the TRDP and TRBP documents contained by the specified Stream.
Declaration
public IReportDocument UnpackageDocument(Stream packageStream)
Parameters
packageStream
Stream
The stream that contains the package to unpackage.
Returns
The Telerik.Reporting object being deserialized.
Remarks
Use the packageStream parameter to specify an object that derives from the Stream class, which is designed to write to streams. Classes that derive from the Stream class include: BufferedStream, FileStream, MemoryStream, etc.