Hiding data columns in designer dictionary
Posted: Thu Oct 15, 2009 10:09 am
I have tried everything I can think of, with no luck (e.g. I tried qualifying the column names in the call to Add with the data source name; I tried using RegData instead of ImportXMLSchema). This is the latest version of my code:
If I put a breakpoint on the call to Design, in the debugger, I can see the restrictions are there, but once the designer opens and I expand the data source, I can still view the columns.
Is there something else I should try?
Code: Select all
DataSet theData = ReportUtility.GetReportData();
stiReport.Dictionary.ImportXMLSchema(theData);
stiReport.Dictionary.Restrictions.Add("OBJECTID", Stimulsoft.Report.Dictionary.StiDataType.DataColumn, Stimulsoft.Report.Dictionary.StiRestrictionTypes.DenyShow);
stiReport.Dictionary.Restrictions.Add("MCPA_C_STAMP", Stimulsoft.Report.Dictionary.StiDataType.DataColumn, Stimulsoft.Report.Dictionary.StiRestrictionTypes.DenyShow);
WebDesigner1.Design(stiReport);
Is there something else I should try?