docs

Home All functions Categories

vuPrintTextFile(FileName, Default)

vuPrintTextFile(*CSTRING,LONG), Signed

Description

Prints the contents of a text file to either the default printer or a printer selected by the end user.

Parameters

Parameter Data Type Description
FileName CSTRING Full path and name of the text file to print.
Default LONG Set to 1 to use the default printer, or 0 to display the printer dialog box.

Returns

A LONG value:

Example

FileName = 'C:\Temp\Test.txt'

! Print to default printer
vuPrintTextFile(FileName, 1)

! Prompt user to select printer
vuPrintTextFile(FileName, 0)

Notes

Home All functions Categories