I have data in the form of XML. How to show it inside a report?
I tried the following:
Code: Select all
var x1:XML =
burger
3.95
fries
1.45
var xmlString:String = x1.toXMLString();
var xmlDoc:XMLDocument = new XMLDocument();
xmlDoc.parseXML(xmlString);
var report2: StiReport = new StiReport();
report2.loadDocumentFromXML(xmlDoc);
var rect: Rectangle = new Rectangle(100, 100, 900, 600);
report2.showDialog(rect, "Customized ViewerFx", true, true);
What is the mistake?
And the bigger question is: Where in the document can I find any information about this topic?
Thanks