Bug Report T1273366
Visible to All Users

Visual Studio Report Designer - Inherited reports have duplicate parameters

created 3 months ago

Steps to reproduce:

  1. Create the base XtraReport with a few parameters.
  2. Subclass the report and introduce another parameter.

Current results:

ParameterLayoutItem is serialized twice, leading to duplication:
Base:

C#
this.ParameterPanelLayoutItems.AddRange(new DevExpress.XtraReports.Parameters.ParameterPanelLayoutItem[] { new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.parameter1, DevExpress.XtraReports.Parameters.Orientation.Horizontal), new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.parameter2, DevExpress.XtraReports.Parameters.Orientation.Horizontal)}); this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] { this.parameter1, this.parameter2});

Inherited:

C#
this.ParameterPanelLayoutItems.AddRange(new DevExpress.XtraReports.Parameters.ParameterPanelLayoutItem[] { new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.parameter1, DevExpress.XtraReports.Parameters.Orientation.Horizontal), new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.parameter2, DevExpress.XtraReports.Parameters.Orientation.Horizontal), new DevExpress.XtraReports.Parameters.ParameterLayoutItem(this.parameter3, DevExpress.XtraReports.Parameters.Orientation.Horizontal)}); this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] { this.parameter3});

Additional information:

Clipboard-File-1.png

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.