PrintLog Procedure

Prints the current Log window contents to the currently selected printer if the first parameter bPromptUser is False(defuat value). The user can select a printer and other print settings with the Print dialog if bPromptUser is True. Also the user can specify print Header and Footer.

Syntax

PrintLog ( [bPromptUser=False], [sHeader=""], [sFooter=""] )

The PrintLog procedure syntax has the following parts:

 

Name

Type

Description

bPromptUser

Val Bool

Display the Print Dialog if True; False by default (ATEasy v5)

sHeader

Val BString

Header string - empty string by default (ATEasy v5)

sFooter

Val BString

Footer string - empty string by default (ATEasy v5)

Comments

If a printer was not selected from Print Setup, ATEasy uses the Windows default printer, which can be selected from Windows Control Panel.

The  'bPromptUser' and Header and Footer string optional parameters are only available in ATEasy 5.0.

Example

The following example prints the Log only when the UUT has passed all tests.

OnEndProgram()

{

GetUutStatus(nStatus, nFails, lFlags, dTime)

If nStatus = PASS

PrintLog()

Endif

}

See Also

SaveLog