ActiveReports 6 Online Help
DataSet Windows Application
Show AllShow All
Hide AllHide All

You can use a Web Service that returns a dataset as the data source for your reports in Windows applications. This walkthrough illustrates how to create a Windows client application that uses the dataset Web Service as the data source for an ActiveReport.

This walkthrough builds on the DataSet 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\GrapeCity\ActiveReports 6\Data\NWIND.MDB (on a 64-bit Windows operating system, a copy is located in C:\Program Files (x86)\GrapeCity\ActiveReports 6\Data\NWIND.MDB).

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

To add controls to a report

  1. Add a new ActiveReport to a Windows application.
  2. Add the following controls to the Detail section of the report, setting their properties as indicated:

    Detail section controls

  3. Set the CanShrink property of the Detail section to True.

To add a reference to a web service to the project

To add a reference to a web service in Visual Studio 2005

To add a reference to a web service in Visual Studio 2008 or 2010 that is compatible with .NET Framework 2.0 Web service

To add a reference to a web service in Visual Studio 2008 or 2010

To set the report data source to the one returned by the Web service

To set the report data source (for Visual Studio 2005 and Visual Studio 2008 or 2010 compatible with .NET Framework 2.0 Web service)

To set the report data source (for Visual Studio 2008 or 2010)

To update the app.config file (Visual Studio 2008 or 2010 project)

Note: You need to update the app.config file if you added the Service Reference to the Visual Studio 2008 or 2010 project in the previous section.
  1. In the Solution Explorer, open the app.config file.
  2. In the tag <binding name = "ServiceSoap"...>, set maxBufferSize and maxReceivedMessageSize to some large number, for example, 200500.
  3. In the next tag <readerQuotas...>, set maxArrayLength to some large number, for example, 60500.