ActiveReports for .NET 3 Online Help Request technical support
ActiveReports Document Windows Application
See Also
User Guide > Samples and Walkthroughs > Walkthroughs > Standard Edition Walkthroughs > Advanced > Web Walkthroughs (Standard Edition) > Web Services Walkthroughs > ActiveReports Document Windows Application

Glossary Item Box

In ActiveReports for .NET 3.0, you can use a Web Service that returns the content of an ActiveReport to show in the Windows Forms viewer control.

This walkthrough illustrates how to create a Windows client application that returns the content of an ActiveReport in the Windows Forms viewer.

This walkthrough builds on the ActiveReports Document Web Service walkthrough and is split up into the following activities:

To complete the walkthrough, you must have access to the Northwind database.
A copy is located at C:\Program Files\Data Dynamics\ActiveReports for .NET 3.0\Data\NWIND.MDB. 

When you have finished this walkthrough, you will have a report that looks similar to the following.

Creating a Visual Studio project

To create a Visual Studio project

  1. From the File menu, select New > Project.
  2. Select Windows Application in the Templates window of the New Project dialog.
  3. Change the name of the application to ARDocumentClient.
  4. Click OK to open the project.

Adding the ActiveReports viewer control to the Windows Form

To add the ActiveReports viewer control

  1. Drag and drop the ActiveReports viewer control from the appropriate toolbox to the Windows Form.
  2. Change the Dock property for the viewer control to Fill.

Adding a web reference to the project

To add a web reference

  1. From the Project menu, select Add Web Reference.
  2. Type in the address of the .asmx file for the ActiveReports Document Web Service you created in the previous walkthrough. The address should be similar to http://localhost/ARDocumentWS/Service1.asmx.
  3. Click the Add Reference button when the Web Service is recognized.

Adding the code needed to set the viewer's document property to the content returned by the ActiveReports Document Web Service

To write the code in Visual Studio 2003

To write the code in Visual Studio 2005

Running the project

To run the project

See Also

©2009. All Rights Reserved.