NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

using cvirte.dll print attributes

I am trying to use cvirte.dll from teststand to automatically print test result reports. I am starting with the example sequence PrintEntireReportWhenFinishedTesting.seq that I found on the NI website. I want to change the print font attribute. The dll doesn't include prototype information so I need information on the parameters for the SetPrintAttributeEx function. Specifically what number refers to the ATTR_PRINT_FONT_NAME attribute and what are acceptable values for the value of this parameter.
0 Kudos
Message 1 of 3
(3,111 Views)
Wendell -
The userint.h file from CVI has the following

#define ATTR_PRINT_FONT_NAME 1318 /* (char *) */

The function panel help for the SetPrintAttribute function has the following:

Constant: ATTR_PRINT_FONT_NAME
Data Type: string (char *)
Description: Name of the font that is used when printing a text file or buffer.
You can specify a metafont for this attribute.
Default value: "Courier"
Valid for text printing.

Values:
VAL_MENU_FONT
VAL_DIALOG_FONT
VAL_EDITOR_FONT
VAL_APP_FONT
VAL_MESSAGE_BOX_FONT
VAL_MENU_META_FONT
VAL_DIALOG_META_FONT
VAL_EDITOR_META_FONT
VAL_APP_META_FONT
VAL_MESSAGE_BOX_META_FONT
VAL_7SEG_META_FONT
VAL_SYSTEM_META_F
ONT

The best place is to either use the function panel to see a list of all attributes or look at the function in the reference help for CVI.

Scott Richardson (NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 3
(3,111 Views)
Thanks, 1318 is the magic number I was looking for.
0 Kudos
Message 3 of 3
(3,111 Views)