| Home | All functions | Categories |
vuPrintToExists(*CSTRING pFile, *CSTRING pPrinter), LONG
Sends a file to the specified printer and checks whether the print job was successfully queued.
Useful for confirming that print requests are reaching the intended printer.
| Parameter | Data Type | Description |
|---|---|---|
| pFile | CSTRING(260) | Path to the file to be printed. |
| pPrinter | CSTRING(260) | Name of the printer (for example, Microsoft Print to PDF). |
Note: In vuFileTools V5, CSTRINGs are not limited to the size shown above. The number is for example only.
FilePath CSTRING(260)
PrinterName CSTRING(260)
Ret LONG
CODE
FilePath = 'C:\Temp\Test.txt'
PrinterName = 'Microsoft Print to PDF'
Ret = vuPrintToExists(FilePath, PrinterName)
MESSAGE('vuPrintToExists returned: ' & FORMAT(Ret), 'vuPrintToExists')
Notes
Ensure the target printer is installed and accessible on the system.
The file specified must exist and be a valid format for the target printer.
For asynchronous or delayed checks, use vuPrintToExistsEx.
Sends a file to the specified printer and checks whether the print job was successfully queued.
Useful for confirming that print requests are reaching the intended printer.
| Parameter | Data Type | Description |
|---|---|---|
| pFile | CSTRING(260) | Path to the file to be printed. |
| pPrinter | CSTRING(260) | Name of the printer (for example, Microsoft Print to PDF). |
Note: In vuFileTools V5, CSTRINGs are not limited to the size shown above. The number is for example only.
```Clarion FilePath CSTRING(260) PrinterName CSTRING(260) Ret LONG
CODE FilePath = ‘C:\Temp\Test.txt’ PrinterName = ‘Microsoft Print to PDF’
Ret = vuPrintToExists(FilePath, PrinterName)
MESSAGE(‘vuPrintToExists returned: ‘ & FORMAT(Ret), ‘vuPrintToExists’)
Notes
Ensure the target printer is installed and accessible on the system.
The file specified must exist and be a valid format for the target printer.
For asynchronous or delayed checks, use vuPrintToExistsEx.
| Home | All functions | Categories |