docs

Home All functions Categories

vuPrintExists(pFile)

vuPrintExists(*CSTRING pFile), LONG

Description

Sends the specified file to the default printer if the file exists.

Parameters

Parameter Data Type Description
pFile CSTRING(260) Full path to the file to print if it exists and is valid

Note: In vuFileTools V5, CSTRINGs are not limited to the size shown above. The number is for example only.

Returns

A LONG value indicating the result:

Example

FilePath CSTRING(260)
Ret      LONG

FilePath = 'C:\Temp\Test.txt'
Ret      = vuPrintExists(FilePath)

MESSAGE('vuPrintExists returned: ' & FORMAT(Ret), 'vuPrintExists Test')

Notes

Uses the systems default printer.

If the file does not exist, the function returns 0 and no action is taken.

Home All functions Categories