IGxFlowDocument.SaveToXAML

Syntax

SaveToXAML: String;

Description

The SaveToXAML method saves the markup of the Formatted Text object to the string variable.

Comments

The method is outdated, use IGxFlowDocument.SaveFormattedText.

Example

Executing the example requires a regular report with the Report identifier that contains the Formatted Text object with the specified parameters.

Sub UserProc;
Var
    Mb: IMetabase;
    MObj: IMetabaseObjectDescriptor;
    Rep: IPrxReport;
    Doc: IPrxFlowDocument;
    Xaml: String;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("Report").Edit;
    Rep := MObj As IPrxReport;
    Doc := (Rep.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IPrxFlowDocument;
    Xaml := Doc.SaveToXAML;
End Sub UserProc;

After executing the example the XML markup from the Formatted Text object is saved to the Xaml variable.

See also:

Drawing Assembly Interfaces