## Embedding Reports or Templates into a Part Program

You can embed a legacy report (HyperView report), a report template, or custom report into your part program. When PC-DMIS executes the embedded code, it launches the report or template allowing you to print it, or view it, and pass values to and from the embedded item.

Important: legacy reports are reports that were created in the HyperView report editor in PC-DMIS versions 3.0, 3.2, 3.25, 3.5, or 3.7. Due to the new template approach to reporting since version 4.0, HyperView reports can only be executed, they cannot be created or edited. To edit or create a HyperView report, you will need to use an older version of PC-DMIS that supports HyperView report creation.

To embed a report or template:

1. Make sure the Edit window is in Command Mode.

2. Select Insert | Report Command, and then choose one of these menu items.

- Custom Report

- Template Report

- Legacy Report

A dialog box appears allowing you to select your report or template.

3. Select the report or template you want to embed in the Part Program.

4. Click the Open button to insert the command.

PC-DMIS will insert one of the following commands into the Edit window at the cursor position:

- REPORT/CUSTOM

- REPORT/TEMPLATE

- REPORT/LEGACY

More:

The REPORT Command

Mapping PC-DMIS expressions to Object Properties