Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows NT, FPW 2.6, and by-passing windows print system.
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Windows NT, FPW 2.6, and by-passing windows print system.
Miscellaneous
Thread ID:
00174433
Message ID:
00174433
Views:
67
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.
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Next
Reply
Map
View

Click here to load this message in the networking platform