I’m created a ReportBase (ReportBasePruebas) and a inhereted report “aa” with XtraReport Wizard.
ReportBasePruebas include 4 parameters.
In inhereted report aa.Designet.cs file this code is generated:
this.ParameterPanelLayoutItems.AddRange(new DevExpress.XtraReports.Parameters.ParameterPanelLayoutItem[] {
new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.pEntidad, DevExpress.XtraReports.Parameters.Orientation.Horizontal),
new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.NombreListado, DevExpress.XtraReports.Parameters.Orientation.Horizontal),
new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.NombreEntidad, DevExpress.XtraReports.Parameters.Orientation.Horizontal),
new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.parameter1, DevExpress.XtraReports.Parameters.Orientation.Horizontal)});
this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] {
this.pEntidad,
this.NombreListado,
this.NombreEntidad,
this.parameter1});
When execute the proyect in Visual Studio, the Report Preview display the error “Internal Server Error” the first time 5 seconds.
The report works ok but this annoying message appears.
Parameters.Count = 4 and Report.ParameterPanelLayoutItems.Count = 8
If delete manualy this code (.AddRange), NO error is diplayed.
On every change in the Visual Studio Design the code .AddRange is added, and some time duplicated, triplicated, etc
More tests.
When adding a new parameter to ReportBase, neither Parameters nor ParametersPanelLayoutItems.AddRange are updated in “aa.Designer.cs”
When adding a new parameter to “aa,” it is updated in Parameters but not in ParametersPanelLayoutItems in “aa.Designer.cs”
When running the “aa” report, Parameters is correct (it includes the updated ReportBase parameters + parameters added in “aa”), but ParametersPanelLayoutItems includes the updated ReportBase parameters + the ParametersPanelLayoutItems or ReportBase included when creating the “aa” report (duplicates that appear to be causing the error; changes to subsequent ReportBase parameters are NOT reflected), and sometimes the parameters specific to the “aa” report do not appear.
**If Parameters and Report.ParameterPanelLayoutItems contains diferents components error is displayed.
**