A newer version of this page is available. Switch to the current version.

PrintingSystemBase.LoadDocument(String) Method

Loads a document from a file in a native XML format (PRNX).

Namespace: DevExpress.XtraPrinting

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

Declaration

public void LoadDocument(
    string filePath
)
Public Sub LoadDocument(
    filePath As String
)

Parameters

Name Type Description
filePath String

A String, which specifies the file name (including the full path) of the PRNX file to be loaded.

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.

NOTE

A note regarding the use of this method in Silverlight applications:

Documents generated by XtraReports or on the server side of a Silverlight application can contain elements that are not native to Silverlight.

For this reason, only use the LoadDocument method in Silverlight to open PRNX documents that are generated by the Printing-Exporting Library (including documents that are generated by DevExpress controls for Silverlight).

See Also