IGxFlowDocument.LoadFromXAML

Syntax

LoadFromXAML:(Xaml: String);

Parameters

Xaml. String is in the Xaml format.

Description

The LoadFromXAML method loads the string that is passed by the Xaml input parameter.  

Comments

The method is outdated, use IGxFlowDocument.LoadFormattedText.

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;
    Rect: IGxRectF;
    Obj: ITabObject;
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;
    Rect := New GxRectF.Create(0, 0, 100, 100);
    Obj:= (Rep.ActiveSheet As IprxTable).TabSheet.Objects.Add("PrxFlowDocument", Rect);
    Doc:= (Rep.ActiveSheet As IPrxTable).TabSheet.Objects.Item(1).Extension As IPrxFlowDocument;
    Doc.LoadFromXAML(Xaml);
End Sub UserProc;

After executing the example the markup from the Formatted Text object that has index 0 is copied to the Formatted Text object that has the index 1.

See also:

Drawing Assembly Interfaces