| Home | All functions | Categories |
vuPrintExistsEx(*CSTRING pFile, LONG WaitSeconds, LONG PollMS), LONG
Sends the specified file to the default printer if it exists. Optionally waits for the file to appear, polling at the given interval, before printing.
| Parameter | Data Type | Description |
|---|---|---|
| pFile | CSTRING(260) | Full path to the file to print if it exists. |
| WaitSeconds | LONG | Maximum number of seconds to wait for the file to appear. |
| PollMS | LONG | Interval, in milliseconds, to poll for the file while waiting. |
Note: In vuFileTools V5, CSTRINGs are not limited to the size shown above. The number is for example only.
A LONG value indicating the result:
FilePath CSTRING(260)
WaitSeconds LONG
PollMS LONG
Ret LONG
FilePath = 'C:\Temp\Test.txt'
WaitSeconds = 10
PollMS = 200
Ret = vuPrintExistsEx(FilePath, WaitSeconds, PollMS)
MESSAGE('vuPrintExistsEx returned: ' & FORMAT(Ret), 'vuPrintExistsEx Test')
Notes
Uses the systems default printer.
Useful when a file is being generated asynchronously and will be ready to print shortly.
| Home | All functions | Categories |