I'm trying to output information directly to a networked printer using the following code:
OUTPUT STREAM rpt-job TO VALUE(jobprt.print-destination) PAGED PAGE-SIZE 55. Where jobprt.destination is a fully qualified UNC pathway to a printer. For example, \\syt\HP4000.
Occasionally we get the message:
"** Unable to open file: \\syt\HP4000. Errno=22. (98)".
The next time the program runs, we don't get the message. I'm thinking this is an intermittent hardware problem of some sort. Is there any way to programmitically test the status/availability of a printer before you start printing to it?
-Ed
OUTPUT STREAM rpt-job TO VALUE(jobprt.print-destination) PAGED PAGE-SIZE 55. Where jobprt.destination is a fully qualified UNC pathway to a printer. For example, \\syt\HP4000.
Occasionally we get the message:
"** Unable to open file: \\syt\HP4000. Errno=22. (98)".
The next time the program runs, we don't get the message. I'm thinking this is an intermittent hardware problem of some sort. Is there any way to programmitically test the status/availability of a printer before you start printing to it?
-Ed