Data Dynamics Reports Online Help
Walkthrough: Rendering Extension Settings
Support Forum
User Guide > Samples and Walkthroughs > Walkthroughs > Walkthrough: Rendering Extension Settings

Glossary Item Box

This walkthrough illustrates how to use the settings available to the various Rendering Extensions to change properties of a report rendered to one of the Rendering Extensions. The method below uses the PDF Rendering Extension, a similar technique is used for each of the other Rendering Extensions.

This walkthrough uses the MovieRatings.rdlx report created in the Basic Report walkthrough, so be sure to complete that walkthrough first.

The walkthrough is split up into the following activities:

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

Creating a new Visual Studio project

To create the Visual Studio project

  1. Open Visual Studio.
  2. From the File menu, select New > Project.

  3. Select the project type and click on Windows Application.
  4. Change the name of your project and click OK.
  5. Add a Button control from the Visual Studio Toolbox to the design surface of the newly created Windows Form. 

Adding Data Dynamics Reports references to the project

To add Data Dynamics Reports references to the project

  1. In the Solution Explorer of Visual Studio, right-click the References folder for C#, or the project name for Visual Basic .NET, and select Add Reference.
  2. Click on the Browse tab in the Add Reference dialog.
  3. Browse to your C:\Program Files\Data Dynamics\Reports\build number\Assemblies\ directory, or whichever directory you installed Data Dynamics Reports in.
  4. Press the CTRL key and click on each of the following assemblies:
    • DataDynamics.Reports.dll
    • DataDynamics.Reports.Extensibility.dll
    • DataDynamics.Reports.Rendering.Pdf.dll
  5. Click OK to add the references to your project.

Adding code to render the report

To add the code to render the report

Tip: Be sure to change the code to point to the location of the report file you wish to render.
Tip: This sample code uses just a few of the available settings, check the Class Library section of the documentation for the Rendering Extension you are using to see the full list of available settings.

Viewing the report

To view the report with the settings applied

  1. In Visual Studio, select Build from the menu, then Build Solution.
  2. Press F5 to run the project.
  3. Click the button control on the Windows form to render the report to PDF. 
    Since the settings we chose hid the Toolbar, Menu bar, and Window UI, all that displays is the report without the typical Adobe Acrobat user interface.
©2010. GrapeCity, inc. All Rights Reserved.