Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacement for ???
Message
From
12/10/2010 16:24:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01485091
Message ID:
01485102
Views:
65
>I've just run into some code in a client's application that sends a formatted string (the concatenation of multiple reports and documents) directly to a printer using ???. The process has worked without modification for over 20 years and the client is not willing to give the functionality since it is an integral part of their business. Lately, under certain conditions only the first page of output will be printed. I guess I'm surprised that it still works at all. However...what is a good replacement for "???" in this situation? Obviously, we need to bypass the printer driver.

Hilmar has a download#9991 which I believe can help in this sort of situation (haven't used it myself).

If that doesn't work for you, one approach is to wrap the code in a SET ALTERNATE TO ( some file ) so the ??? commands get captured to a file, and when you're done dump the file to the printer. If, say, the PRN or LPT1 DOS printer ports are captured/redirected to a Windows printer (local or network), you can COPY FILE ( some file ) TO PRN.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform