Rendering a Report in Windows.

Estimated reading time: 2 minutes

This document discusses how to render a Manuscript with the support of Windows. ASNA provides two different implementations of a Report Renderer:

Common Features of the Two Implementations

A Printer File is a collection of Windows Forms Controls. ASNA provides a set of these controls (distributed in the ASNA.DataGate.PrintControls.dll assembly) which are well suited for printing, but other controls may be used when designing a Printer File. When a report is created using a Printer File, the Controls are not used, but their design and runtime property values are recorded in a Manuscript file.

The Rendering process reads the Manuscript and instantiates the controls according to their design time properties and then iterates over the pages of the report setting the recorded runtime property values and rising the controls OnPaint’s event. The Paint event receives the System.Drawing.Graphics instance that encapsulates the GDI+ drawings surface of the printer where the report is being renderer.

The DataGate Renderer and the ASNA.QSys.Renderer.WindowsOnly programs are .NET Framework executables that depend on the Windows operating system.

The Printer where the report is created must be installed on the computer where the rendering is being executed and it can be a physical printer or the “Microsoft Print to PDF” printer.

Both implementations of the Renderer accept the same set of command line options

DataGate Renderer

The DataGate Renderer is installed as part of the ASNA DataGate® Studio product which can be downloaded and installed directly. It is also included in several other ASNA product, most notablly ASNA DataGate® WebPak and ASNA Encore RPG™.

The DataGate Renderer program is called simply Renderer.exe and is typically installed in the Program Files folder:
   C:\Program Files\Common Files\ASNA Shared\Client\Common

In addition to the Renderer program, the installation places the assembly ASNA.DataGate.PrintControls.dll in the folder:
    C:\Program Files\Common Files\ASNA Shared\Client\xx.x
(where xx.x is the version number of the product being installed) and registers the assembly in the GAC.

ASNA.QSys.Renderer.WindowsOnly

The ASNA.QSys.Renderer.WindowsOnly can be used to print a Manuscript file to any printer installed on a Windows computer, including the ‘Microsoft Print To PDF’ printer.

ASNA.QSys.Renderer.WindowsOnly is the Open Source releas of the DataGate components. To distiguish this components from those ship with the standard DataGate ones the names have been modified.

It is your responsibilty to build and install these components on your system. You can find the project sources in the GitHub Repository.