I am running into a problem with a distributed accounting application we have written when I run it on NT. In a few places in our code, we send things directly to a printer without using the windows print system. The code is fairly old, and works well under 3.1, 95, 98, but crashes on NT. Here is the code involved:
SET RESOURCE ON
SET RESOURCE TO \BPA\FOXUSER
SET PDSETUP TO "Generic"
SET CONSOLE ON && View report while it prints
SET PRINT ON
SET PRINT TO C:\LPT1
When the code reaches the SET PRINT TO C:\LPT1 line, Windows NT gives me a resource error and closes the application. If we don't use the PDSETUP, the code doesn't seem to actually get anything out to the printer, even using ???. Does anyone have a suggestion or solution?
Thanks,
Paul R. Moon
PS. I tried searching the UT, but the search engine won't accept 'NT' because it is too few characters and I couldn't get the search narrowed without it.