You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
DOSPRINT can be found at http://www.dosprint.com and solves many printing problems for DOS programmers running their apps in the Windows environment, especially when Windows-only and USB printers come into the picture...
A fully function demo can be downloaded from the website above, and given a complete test drive.
You can also print via the parallel port of your machine thus:
OPEN "LPT1:" FOR OUTPUT AS #1
PRINT #1, "Your text . . . . . "
CLOSE #1
The "CLOSE" line should kickstart your printer into action if
you also heed Lance's advice, I consider a MUST !
There is also a guy in this forum who sells an excellent print
utility called DOSPRINT which lets you print directly to WIN printers
from PB-DOS programs
You'll find him browsing for "Dosprint" on the Web.
------------------
[This message has been edited by OTTO WIPFEL (edited February 14, 2002).]
LPRINT does not have any way of explicitly "closing" the printer port, so Windows has to use a no-data "timeout" period to determine (ie, guess/assume) when the print job has finished.
In this case, using "Print directly to the printer" may help though.
What method are you using to print? LPRINT, OPEN "LPT1", OPEN "LPT1:", or...?
Local or network printers? How are your spool settings on the Advanced page of the Printer dialog? (probably the "start printing immediately" option would be the best choice here, and "print directly to the printer" could be worthwhile testing too).
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: