Mike Clark
Member
Windows Vista
Progress 9.1E (and 10.2B)
Hi
We are having a problem with being able to send(COPY) a print file to a USB printer.
The created.txt is a print file with various control characters in it for formatting.
The program in question has the following code to send print to the Shared printer named 'hp4250' on the server named 'server'.
def var lv-spool as char format "x(50)" no-undo.
assign lv-spool = "COPY spool\created.txt \\server\hp4250".
DOS SILENT VALUE(lv-spool).
This works correctly and the file is printed.
However the print file should now be sent to a canon printer named 'canon' on my PC's USB port, with the PC named 'MIKE-PC'. (The canon printer is shared), so the code becomes
ASSIGN lv-spool = "COPY spool\created.txt \\MIKE-PC\canon".
DOS SILENT VALUE(lv-spool).
Nothing is printed.
If I remove the SILENT the DOS box says 1 file copied, but still nothing is printed.
I can print to the canon printer through word etc.
Any thoughts as to how to get round this problem.
Mike
Progress 9.1E (and 10.2B)
Hi
We are having a problem with being able to send(COPY) a print file to a USB printer.
The created.txt is a print file with various control characters in it for formatting.
The program in question has the following code to send print to the Shared printer named 'hp4250' on the server named 'server'.
def var lv-spool as char format "x(50)" no-undo.
assign lv-spool = "COPY spool\created.txt \\server\hp4250".
DOS SILENT VALUE(lv-spool).
This works correctly and the file is printed.
However the print file should now be sent to a canon printer named 'canon' on my PC's USB port, with the PC named 'MIKE-PC'. (The canon printer is shared), so the code becomes
ASSIGN lv-spool = "COPY spool\created.txt \\MIKE-PC\canon".
DOS SILENT VALUE(lv-spool).
Nothing is printed.
If I remove the SILENT the DOS box says 1 file copied, but still nothing is printed.
I can print to the canon printer through word etc.
Any thoughts as to how to get round this problem.
Mike