How to customize BusinessObjects column

Stimulsoft Reports.WPF discussion
Post Reply
tevildo
Posts: 8
Joined: Thu Nov 17, 2011 12:26 pm

How to customize BusinessObjects column

Post by tevildo »

Hello,

I want to customize the BusinessObjects columns. I want to hide some columns and change the alias.
I'm trying to do that with this code:

BO.BusinessObjectValue = new List() { AM };

BO.Columns.Add(new StiDataColumn("Column_1", "Name", Type.GetType("System.String")));
BO.Columns.Add(new StiDataColumn("Column_2", "Description", Type.GetType("System.String")));

Report.Dictionary.BusinessObjects.Add(BO);
Report.Dictionary.SynchronizeBusinessObjects();
Report.Dictionary.Synchronize();

The BusinessObject appears in the Dictionary Panel, but the preview doesn't list any data.

Thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to customize BusinessObjects column

Post by Alex K. »

Hello,

Please send us a sample rpoject for analysis.

Thank you.
tevildo
Posts: 8
Joined: Thu Nov 17, 2011 12:26 pm

How to customize BusinessObjects column

Post by tevildo »

Hello,

I've sent an email to support@stimulsoft.com.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

How to customize BusinessObjects column

Post by Andrew »

Ok! Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

How to customize BusinessObjects column

Post by Ivan »

Hello,

Please instead of code:

Code: Select all

           BO.BusinessObjectValue = new List() { AM };
use the following line of code:

Code: Select all

           Report.RegBusinessObject(BO.Category, BO.Name, BO.Alias,  new List() { AM });
Thank you.
Post Reply