Page 1 of 1

Reports won't display any data

Posted: Tue Oct 05, 2010 10:28 am
by Dom
Hi,

I've created a report in designer. It previews fine and I have saved it as a .mrt file. The Data connection in the the report is to an xml file hosted on a web server, so it has an absolute url.

When I try to open the report in my Flex application it is blank. There is no data and no labels.

The code I am using to display the report is:

Code: Select all

private function reportLoaded(e:Event):void {
				var report:StiReport = new StiReport();
				var xs:String = e.target.data;
				report.loadDocumentFromString(xs);
				report.show(reportViewer);
				
				
			}
I am using the latest release version of Resports.Fx for Flex in a Flash Builder app with Flex 4 SDK. I can see that the report string has loaded in the debugger and correctly references the url of my data.

How do I make the report display?

Thanks
Dom



Reports won't display any data

Posted: Wed Oct 06, 2010 4:07 am
by Vladimir
Hello,

The report.loadDocumentFromString() method loads a rendered report file (.mdc document). For loading a report file (.mrt template), please use the report.loadReportFromString() method.

Thank you.

Reports won't display any data

Posted: Wed Oct 06, 2010 6:56 am
by Dom
That works! Thanks