How to Create a Report Header
What are Report Headers?
Report headers are customized elements at the top of every CAPPS report. By default, they include a logo, date and time of execution, CNC name, operator, part name, part number, and comment fields, which can be tailored for more or less information. The report header serves to clarify details about the observed report, providing essential information.
How to Create a Report Header
Navigate to the Report Ribbon--> Custom Header Icon to open the Report-Header Setup Dialog
Once the Report Header Dialog is open, it is now able to start to modify the information listed.
The default layout with the already existing columns in the header can be used if a custom one is not desired. Simply type in the information that is required in the header section.
When satisfied with the information in the layout, click Apply. It will then write the DMIS code associated to the information that was entered along with all the report header information
Q(1)=QISDEF/'RptClmnOrder', 'ELEM# ACTUAL NOMINAL LOW_TOL UPP_TOL DEV OUT_TOL CONTROL'
Q(1)=QISDEF/'RptHdrLytFile', 'DefaultLayout.lyt'
$$DATE: 4/9/2025
DI(1)=DMEID/'@cncname'
PN(1)=PARTID/'@partname'
$$TIME: 04:13:22 PM
OP(1)=OPERID/'@operator'
PS(1)=PARTSN/'@
CM(1)=COMMNT/''
R(1)=REPORT/LOGO,DATE,DI(1),PN(1),TIME,OP(1),PS(1),CM(1)
OUTPUT/R(1)If a mistake has been made feel free to correct them in the header dialog or edit the text in-between the ' ' for the target information to be modified.
Modifying Logo Image
Double click on the Logo while under the Input Header Data Tab in the Report-Header Setup dialog
Click the “file folder icon” in the upper right hand corner to point to the desired report logo.
Select the placement - Left, Right, or Center
Keep Aspect Ratio toggle will force the logo to maintain it’s aspect ratio.
Height and Width can be used to adjust size of the image. This can be adjusted either in Inch or cm.
Do note that if Keep aspect ratio is checked the Height and width options will be fixed to the same values.
By selecting Keep Original Size it will not scale or lock the aspect ratio.
Image size needs to be within the limits to use the Keep Original Size option.
Click OK when finished uploading and modifying the logo size.
How to Design Custom Header
To change the logo location or modify the header layout, use the Custom Header dialog. CAPPS allows users to customize and organize headers through a grid system.
Each grid box features a dropdown menu for selecting various data fields, enabling the report to populate with specified information.
To rearrange or modify data within each grid section, use the Merge/Unmerge, Add/Remove Column, and Add/Remove Row buttons, as well as the Save or Clear Layout button beneath the preview.
Columns and rows without dropdowns can be added. After building and saving the layout, proceed to the Input Header Data page to input the desired information.
How to Save and Apply Custom Header
Once the header looks like an acceptable layout, click Save Layout and put the .lyt file either locally for this particular CAPPS computer or put on a server location to allow multiple users to use the same header layout.
Once the layout is saved, it will now be accessible to populate in the Input Header Data dialog, through the header layout file dropdown.
If the .lyt file can’t be found, it could be because the system is pointing to a different location. To adjust where the system looks for .lyt file simply navigation to the System-->Configuration-->Files Locations-->Report Header Layout Files and point it to the desired location.
How to Parametrize Header
When creating a header it might be necessary to have it automatically populate with the information provided at run time or with information that the person running the program has input. CAPPS has the ability to add variables to parametrize and record the information needed for the header in a variety of ways. If there is information that can be stored in a variable and would be desired or necessary in the report header simply use the @ sign in front of the variable.
See Example Below:
In this example every label after the '@' sign represents a variable declared and populated somewhere in the inspection program. The code that populates and activates the header file can be placed at any stage of program execution to allow for any information in the program to be processed before populating the header.
Example Code
Make sure that the text between the ' ' following the parameter = statement is the target variable or text that should be display in the report.
$$ Declare Variables First
DECL/GLOBAL,STRING,CNC
DECL/GLOBAL,STRING,OPERATOR
DECL/GLOBAL,INTGR,PART_NUMBER
DECL/GLOBAL,STRING,PART_NAME
DECL/GLOBAL,STRING,COMMENT
$$ Query Operator
CNC=OBTAIN/KEYBRD,'Which CNC machine are you running this program on?'
OPERATOR=OBTAIN/KEYBRD,'Who is running this program?'
PART_NAME=OBTAIN/KEYBRD,'Which part variant are you running?'
TEXT/QUERY,(PART_NUMBER),80,NUMERIC,LEFT,'What's the serial number?'
$$ Data Pass/Fail
$$
$$ COMMENT Variable contains the total number of feature results to determine Pass/Fail condition
COMMENT=@RESULT
Q(1)=QISDEF/'RptClmnOrder', 'ELEM# ACTUAL NOMINAL UPP_TOL LOW_TOL DEV OUT_TOL CONTROL'
Q(1)=QISDEF/'RptHdrLytFile', 'DefaultLayout.lyt'
$$DATE: 4/10/2025
DI(1)=DMEID/'@CNC'
PN(1)=PARTID/'@PART_NAME'
$$TIME: 11:28:06 AM
OP(1)=OPERID/'@OPERATOR'
PS(1)=PARTSN/'@PART_NUMBER'
CM(1)=COMMNT/'@COMMENT'
R(1)=REPORT/LOGO,DATE,DI(1),PN(1),TIME,OP(1),PS(1),CM(1)
OUTPUT/R(1)
Report Header Result
Example Report Header Options
Information that may be helpful to have extra in a header file for quick understanding.
Go/ No Go part result
Part number verification prior to running.
List Feature count for inspected/re-inspected routines
Show min/max part deviation magnitudes
Decide next processing step with part information such as send to buff for transition features or to decide if a cylinder should be bored next.
Version Control
To view the most current version of this document: