## Embedding Reports or Templates into a Part Program

You can embed a legacy report (HyperView report), a report template, custom report, or label template 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 where applicable.

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. See "Working with Legacy (HyperView) Reports".

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

   - Report Label

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

- REPORT/LABEL

More:

The REPORT Command

Mapping PC-DMIS expressions to Object Properties