Skip to main content
A newer version of this page is available. .

PrintingSystemBase.LoadDocument(Stream) Method

Loads a document from a Stream object, containing data in a native XML format (PRNX).

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

public void LoadDocument(
    Stream stream
)

Parameters

Name Type Description
stream Stream

A Stream object containing PRNX data.

Remarks

Use the PrintingSystemBase.SaveDocument and LoadDocument methods to save a printing system‘s document (all its pages and bricks) to a PRNX file, and then load it into another printing system instance. This may be required, for example, when it’s necessary to pass a generated report to another machine that doesn’t have access to the same data as the machine that generated the report.

Prior to saving a printing system document, it must be created by calling the LinkBase.CreateDocument method.

The printing system’s PrintingSystemBase.ExportOptions provide the ExportOptions.NativeFormat property, which specifies how a document should be saved to a PRNX file. For example, to reduce the size of the resulting PRNX file, set the NativeFormatOptions.Compressed property to true.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LoadDocument(Stream) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also