SaveToXAML: String;
The SaveToXAML method saves the markup of the Formatted Text object to the string variable.
The method is outdated, use IGxFlowDocument.SaveFormattedText.
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: