Show contents 

Report > Report Assembly Interfaces > IPrxReportExporter > IPrxReportExporter.LoadSettings

IPrxReportExporter.LoadSettings

Syntax

LoadSettings: (Container: Variant);

Parameters

Container. The parameter that contains XML element with regular report export settings.

Description

The LoadSettings method loads export settings from XML element.

Comments

An XML file can be obtained using the IPrxReportExporter.SaveSettings property.

Names of attributes in the XML file with settings match the names of corresponding properties of IPrxReportExporter.

Example of XML file with export settings

Example

Executing the example requires that the c:\test.xml file contains previously saved settings.

Add links to the Report and Xml system assemblies.

Sub UserProc;
Var
    Exporter: IPrxReportExporter;
    element: IXMLDOMElement;
    xml: IXMLDOMDocument;
Begin
    Exporter := New PrxReportExporter.Create;
    xml := New DOMDocument60.Create;
    xml.load("c:\test.xml");
    element := xml.documentElement;
    Exporter.LoadSettings(element);
End Sub UserProc

After executing the example, regular report export options are loaded from the c:\test.xml file.

See also:

IPrxReportExporter