ActiveReports 6 Online Help
Silverlight Viewer (Pro Edition)
Show AllShow All
Hide AllHide All

This walkthrough introduces you to Silverlight in ActiveReports and will guide you through the process of creating a Silverlight application in Visual Studio and viewing a report in the ActiveReports Silverlight Viewer.

This walkthrough is split up into the following activities:

When you have completed this walkthrough, you will have a Web site that looks similar to the following:

To create a Silverlight application in Visual Studio 2010

  1. On the Visual Studio File menu, click New Project.
  2. In the New Project dialog that appears, select Silverlight Application in the list of templates.
  3. Specify the name and location of the project and then сlick the OK button.
  4. In the New Silverlight Application dialog, select a method for hosting your Silverlight application and then click the OK button.

To add the Silverlight Viewer control

  1. Open MainPage.xaml in Solution Explorer.
  2. From the Toolbox, drag the Viewer control to Design view of MainPage.xaml.
  3. Drag any corner of the control to enlarge the viewer.
  4. In the Properties window, rename the Viewer control to viewer1.

Note: Microsoft Silverlight 4 Tools is required for the proper functioning of the ActiveReports Silverlight Viewer.

To bind a report to the ActiveReports Silverlight Viewer

To bind a report stream (aspx page)

To bind an RPX report handler

To bind an RDF report

To bind an RDF report by using the Viewer.ViewModel.ReportPath property

To bind an RDF report by using OpenFileDialog

To preview a report

  1. Press F5 to run the project. The page with the Silverlight Viewer displaying a report, appears in your browser.

To print a report

  1. On the Silverlight Viewer toolbar, click Print.

  2. In the Print dialog that appears, select the printer settings and click Print.
See Also

Getting Started

How To