Lesson 4 - Create a Tabular Report

  • 3 minutes to read

This tutorial will guide you through the process of creating a data-aware Snap report with a tabular master-detail layout, and printing and saving it to your hard drive.

The tutorial consists of the following sections.

Prepare a Snap Application

To get started with this tutorial, open the Snap application created in Lesson 1 - Create a Snap Application and run it. Provide a hierarchical data source for your Snap document, as described in Lesson 2 - Connect a Document to Data. This tutorial uses a connection to the sample Northwind database (the nwind.mdb file included in the product installation).

Create a Report Layout

To create a master-detail Snap document layout, do the following.

  1. To create a simple tabular report, select the data fields that you wish to include in the report in the Data Explorer and drag them to the Design Surface. When you drop data fields onto the empty space in the document body, they are added to a new Snap list as columns. You can select multiple data fields by pressing CTRL or SHIFT.

    snap-getting-started-tabular-report01

    To improve performance, Snap shows only the first 20 data rows of a Snap list by default. To change this setting, use the Editor Row Limit option, which is located on the List tab of the main toolbar.

    SnapControl-get-started-10

  2. To convert the layout of a Snap list to a paragraph presentation, select the Snap list you wish to convert and click the Convert to Paragraphs command in the List tab of the contextual Data Tools toolbar category. Note that there is no reverse action allowing you to convert a Snap list back to the tabbed form.

    snap-getting-started-tabular-report04

    The report should now appear as shown in the following image.

    snap-getting-started-tabular-report02

    To remove a list header, select the Snap list, click the Header command in the List tab of the main toolbar, and select Remove Header in the invoked drop-down menu.

    snap-getting-started-tabular-report03

  3. To create a detail report, drag data fields from the child data table in the Data Explorer onto the lower border of the master report's data row, as shown in the image below.

    snap-getting-started-tabular-report05

    The added detail part will have a tabular form by default.

    snap-getting-started-tabular-report06

This tutorial concentrates on a very limited set of actions that can be performed with Snap. For more information on the Snap reporting functionality, see the following tutorials in Snap Examples.

Preview and Publish a Snap Report

Your Snap document with a tabular layout is now ready. Click the Print Preview button in the General Tools: File tab of the main toolbar to view the preview.

snap-getting-started-tabular-report07

See Also