Ticket T318553
Visible to All Users

ReportsV2 - How to activate the "Add Report Data Source..." option to add new custom non-XAF data sources in the runtime WinForms report designer

created 9 years ago (modified 7 years ago)

With XAF we intentionally removed the "Add Data Source" button from the Report Designer invoked in XAF apps to prevent issues when this option was incorrectly used (v18.1.4+).

We also removed the "Add Report Data Source…"  option from the runtime report designer (15.2.5+)

If you are sure about your actions and want to enable this capability, you can add the following code into the YourSolutionName.Win/WinApplication.cs file:

C#
protected override void OnLoggedOn(LogonEventArgs args) { base.OnLoggedOn(args); DevExpress.ExpressApp.ReportsV2.Win.ReportDesignerTypeDescriptionProvider.RemoveProvider(); }

Take special note that in the ASP.NET report designer, using new SQL data sources is NOT disabled by XAF, because a developer must predefine them in code. Please review the End-User Report Designer for ASP.NET > Wizards > SQL Data Source Wizard and End-User Report Designer for ASP.NET > Developer Guidelines > Register Default Data Connections  articles to ensure that you have provided any data connection for the report designer.

Answers approved by DevExpress Support

created 9 years ago

We have implemented the functionality described in this ticket. It will be included in our next update(s).

Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

    Show previous comments (7)
    DevExpress Support Team 9 years ago

      Hello,

      Thank you for your follow-up.
      I've created a separate ticket on your behalf (T407985: ReportDesignerTypeDescriptionProvider.RemoveProvider() method does not work correctly) regarding this issue. It has been placed in our processing queue and will be answered shortly.

        Hello,

        is there a web equivalent of this option? I have end users that would like to use the web report designer and also bind data to sql queries/stored procedures etc Or do you have another alternative?

        DevExpress Support Team 8 years ago

          Hello,

          In the ASP.NET report designer, creating new sql datasources is not disabled by XAF. Please review the End-User Report Designer for ASP.NET > Wizards > SQL Data Source Wizard and End-User Report Designer for ASP.NET > Developer Guidelines > Register Default Data Connections  articles to ensure that you have provided any data connection for the report designer.

          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.