Defining Business Object Data Source in Designer

Stimulsoft Reports.NET discussion
Post Reply
dsdobbins
Posts: 5
Joined: Tue Feb 10, 2009 5:48 pm
Location: US

Defining Business Object Data Source in Designer

Post by dsdobbins »

How do you define columns for nested business objects from within the designer? I have successfully defined my top level business object using "New Data Source... | Data from Business Object" and then defining columns corresponding to properties of my object. One of my properties, however, is an IList. How do I define this column in the designer so that I can have child columns that appear on my report?

Thanks
David
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Defining Business Object Data Source in Designer

Post by Vital »

Hello,

Please use following code:

Code: Select all

StiReport report = new StiReport();
report.Load("myreport.mrt");
report.RegData(object);
report.Dictionary.Synchronize();
Thank you.
dsdobbins
Posts: 5
Joined: Tue Feb 10, 2009 5:48 pm
Location: US

Defining Business Object Data Source in Designer

Post by dsdobbins »

Thank you for your response but I am trying to do this in the designer, not from code. Is this possible?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Defining Business Object Data Source in Designer

Post by Edward »

Hello,

Yes, it is possible.

Please define a Column of object type and then you will be able to access the data in the Column as follows:

Code: Select all

((myNamespaceFromReferencedAssemblyOfTheReport.MyIListType)MyDataSource.MyIListColumn)[i]
Thank you.
Post Reply