Ticket T284557
Visible to All Users

End-User XtraReport Designer Demo/Example

created 10 years ago

Hi,

Do you have any project examples/demos for the end-user report designer for WPF and Winfoms?  I could not find any in the in the DevExpress demos folder that came with the install.

Greg

Answers approved by DevExpress Support

created 10 years ago

Hello Greg,

You can review the Reporting Demos using the ReportMainDemo solution from the following directory:

C:\Users\Public\Documents\DevExpress Demos 15.1\Components\Reporting\CS\ReportMainDemo

Once you build this demo and run it, in the toolbar of the main window, you'll find the Designer button that invokes the End-User Report Designer for a currently previewed report.

The demo solution that targets the WPF platform can be found in the following directory:

C:\Users\Public\Documents\DevExpress Demos 15.1\Components\Reporting\CS\ReportDemo.Wpf

Once you build this demo, run it and choose any of the reports. You'll see the "Run Report Designer" button that invokes the WPF Report Designer.

The source code of reports used in these demos is located here:

C:\Users\Public\Documents\DevExpress Demos 15.1\Components\Reporting\CS\DevExpress.DemoReports

Let me know if you have further questions.
Thanks,
Dmitry

    Show previous comments (1)
    DevExpress Support Team 10 years ago

      Hi Greg,

      Yes, certainly. To do this, use Report parameters. Take a look at the following help topics that describe this functionality in greater detail:
      Parameters Overview
      How to: Filter Data at the Report Level
      How to: Filter Data at the Data Source Level

        Thanks, I will look into this.  Last question: will we be able to use a dx document viewer inside of a wpf application to view the .repx report that the administrator saves, or is there a different control we have to use within a wpf application to view the .repx?

        Yaroslav (DevExpress Support) 10 years ago

          Greg,
          The DocumentPreviewControl, as its name implies, is used to preview the already produced report documents stored in the PRNX format (see How to: Save and Restore a Report Document from a File article). The REPX format, on the other side, stores the report layout definition (control positions, size, formatting settings and so on), but not the actual data, and it's required to modify this layout through the designer facilities (the print preview is embedded into the designer so you can see the result of the introduced changes). Of course, it's possible to create a report instance from the provided REPX file, configure its data source (if required), generate the document, and finally, assign it to the viewer for previewing. However, by default, the DocumentPreviewControl won't even allow you to select files with the REPX extension in Windows Explorer and in order to avoid this shortcoming, it would be required to override the viewer's 'OpenFile' command. Let us know if you're interested in this approach.
          I hope the helps.

          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.