How do i connect my data to a report?

Stimulsoft Reports.Flex discussion
Locked
gambop
Posts: 2
Joined: Mon Oct 22, 2012 1:41 pm

How do i connect my data to a report?

Post by gambop »

Hi,

i cannot connect my data to a report.
this is my code:

var xml:XML=
<Demo>
<Customers>
<ID>1</ID>
<CustomerName>John Smith</CustomerName>
<City>Dallas</City>
</Customers>
<Customers>
<ID>2</ID>
<CustomerName>Antonio Moreno</CustomerName>
<City>Dallas</City>
</Customers>
<Customers>
<ID>3</ID>
<CustomerName>Elizabeth Brown</CustomerName>
<City>Houston</City>
</Customers>
</Demo>;

var report: StiReport = new StiReport();

report.loadReportFromString(reportString);


report.dictionary.databases.clear();

report.regData("Demo","Demo",xml);
report.dictionary.synchronize();
report.design();

But i cannot see data in data band and i always see a "X" near the data source "demo" in the designer.
Thanks
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: How do i connect my data to a report?

Post by Vladimir »

Hello,

We could not reproduce the error, the data is displayed correctly (please see attached screenshot). Most likely there is an error in your report. Please check the data source and columns names in the report, they must be the same as in the specified data.
Untitled.png
Untitled.png (153.99 KiB) Viewed 1795 times
Thank you.
Locked