Remove column from the business object dictionary

Stimulsoft Reports.WEB discussion
Post Reply
Tânia
Posts: 34
Joined: Thu Jun 13, 2013 12:22 pm

Remove column from the business object dictionary

Post by Tânia »

Hello,

Removed a property in my class that I'm registering in the report, but this property remains displayed business object dictionary, tried running the command:
report.Dictionary.BusinessObjects.Clear ();
report.Dictionary.RemoveUnusedData ();

The first command removed my relationship with the band data, the second did not see any difference.

What should I do to display the deleted columns of my object?

Thank you in advance,
Tânia
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Remove column from the business object dictionary

Post by HighAley »

Hello.

Please try to use next code:

Code: Select all

StiOptions.Dictionary.BusinessObjects.ColumnsSynchronizationMode = Stimulsoft.Report.Dictionary.StiColumnsSynchronizationMode.RemoveAbsentColumns;
report.Dictionary.SynchronizeBusinessObjects();
Thank you.
Tânia
Posts: 34
Joined: Thu Jun 13, 2013 12:22 pm

Re: Remove column from the business object dictionary

Post by Tânia »

Thank you, it worked

Tânia
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Remove column from the business object dictionary

Post by Andrew »

Dear Tânia,

Thank you for letting us know about this.
Post Reply