I have an app which supports standard output to a printer, using TPrinter, built in Delphi 6 on an NT network. The output device is a network printer.
While debugging, I invariable get the message "Operation not supported by selected printer" when a print job begins. I sometimes, but not always, also get a message about failure to initialise a spool DLL. Delphi then displays the CPU windows.
This app is used by over 1000 people, and most have no problem when running the EXE file directly. However, I few get the same error message. I am unable to reproduce the fault, (except from the debugger, which doesn't help to identify the problem.)
Can anyone please explain what's going on, and how to get round the problem?
Regards
Samuel
While debugging, I invariable get the message "Operation not supported by selected printer" when a print job begins. I sometimes, but not always, also get a message about failure to initialise a spool DLL. Delphi then displays the CPU windows.
This app is used by over 1000 people, and most have no problem when running the EXE file directly. However, I few get the same error message. I am unable to reproduce the fault, (except from the debugger, which doesn't help to identify the problem.)
Can anyone please explain what's going on, and how to get round the problem?
Regards
Samuel