Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to deploy a WPF Report Designer on the client

$
0
0

This example illustrates the legacy API that was used to deploy the older version of the Report Designer for WPF on the client (without a reporting server).

This control was discontinued, and starting with version 15.2, we recommend you use the newer Report Designer version instead.


To deploy the older Report Designer version locally, do the following.

1. Substitute the default client for the Report Designer with a custom one.

1.1. Create a custom client (in this sample, see LocalReportDesignerClient) that implements the IReportDesignerServiceClient interface. All methods of this interface are delegated from ReportService that is defined as a field or property in this client.

1.2. The client can refer to a ReportService type object, but it does not implement saving/loading of a report layout. For this reason, add an extension class that implements IDesignerReportStore interface (in this sample, see LocalDesignerReportStore class showing a simplified implementation of the LoadLayout and SaveLayout methods of the IDesignerReportStore interface).
 1.3. In this sample, the Abort and CloseAsync methods in LocalReportDesignerClient are intentionally left empty, because they are not required.

1.4. Since the ReportDesignerViewModel exposes not the client, but its factory, you need to create this factory as well (in this sample, LocalReportDesignerClientFactory) and assign it to the Designer’s view model (in this sample, see MainWindow.xaml.cs).

2. For the ReportDesignerViewModel, specify a report's name and namespace, as well as a fake ServiceUri.


See also: How to use a WPF Report Designer in a client-server mode.

Question Comments

Added By: Xavier de LURION at: 9/19/2012 7:21:57 AM    

In your exemple, you use a Report designed in Visual Studio, but how do you do to load it from database ?

Added By: Ramesh Supekar at: 6/6/2014 2:58:34 AM    

For the example here in downloads

In ribbon control Watermark button click  gives null reference error , Please guide how to fix this .

Added By: Dani Rotzetter at: 7/1/2014 7:59:16 AM    

Hello, do you intend to, some time in the future, provide methods to launch the designer in a "real" client mode, without the need to create a "fake" server service that must be run on localhost?
Kindest regards

Added By: Igor D (DevExpress) at: 7/1/2014 10:09:25 AM    

Hi Ramesh Supekar,

Please see the following ticket: http://isc.devexpress.com/Thread/WorkplaceDetails/T115655

Added By: Igor D (DevExpress) at: 7/1/2014 10:12:37 AM    

Hi Dani Rotzetter,
 
Currently, we do not have immediate plans to implement a full-featured WPF report designer.

Added By: Candy lei at: 12/25/2014 11:03:00 PM    

Hello,
What does the last code in the MainWindow.xaml.cs file meaning? I comment this code line,but the application works well.

Added By: Dmitry Tok (DevExpress Support) at: 12/26/2014 12:19:15 AM    

Hello Candy,

To process your recent post more efficiently, I created a separate ticket on your behalf: T191108: Question regarding deployment of the WPF Report Designer to a client. This ticket is currently in our processing queue. Please stay tuned for the updates in that thread.
Thank you for your cooperation.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>