Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Here is an easy Print Spooler ! 3

Status
Not open for further replies.

ramani

Programmer
Mar 15, 2001
4,336
AE
Hi,

I have found this PrintFile available as free download in the following link... working excellent.

Read the readMe file provided with that. YOu can set the command line options.. to use that as an automatic print spooler. Any file put in the specified spooler directory will be picked up and printed by the PrintFile.

So what I did, is to check for a Variable in my programme and use the spooler if opted... example...

IF lUsePfile
myTxt = "C:\mySpoolDir\"+sys(3)+".txt"
REPORT FORM myReport NOEJECT TO FILE (myTxt)
ELSE
REPORT FORM myReport NOEJECT TO PRINT
ENDIF

PrintFile will print the text file and then delete it as well.

In the above example I setup the spooler to take the default as .txt.... while its default is .ps

You can manipulate all these suitably. You can even print in Landscape with two pages in a single A4.

[COLOR=/blue]
THE ADVANTAGE IS THAT YOU CAN START USING USB PRINTERS AND 'WINDOWS PRINTERS' IN FOXPRO DOS.
[COLOR=/]
Hope this is of help. :)

I am not in any way connected to PrintFile or in its promotion. It is a freeware.

If anyone needs a help as to how to set it, please ask for help :)
ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Nice Find Ramani David W. Grewe
Dave@internationalbid.com
 
Some of the reasons to use a Windows spooler such as this free PrintFile when printing from DOS programs are:

Avoid missing pages when printing a multi-page report. (Kind of frustrating when printing checks and finding that a few of the "pages" sent to the printer never made it there!)

If you have shared your printer with other workstations and they print at the same time you print in DOS and crash into each other, you can avoid all those subsequent error messages and reboots. (You see, DOS and WIndows have certain blind spots and how/when the other environment is printing is one of them. DOS printing is usually sent to LPT1 or LPT2 whereas Windows does it differently.)
 
Hi Ramani,

I found your thread, thinkink that it will solve my problem, but unfortunatly the link is down. Do you know another place where I can get this free download.

I need to print from GreatPlains to 2 network printers at the same time (one for shipping and one for accounting).

Let me know if you have any solution.

Thanks ,
David
 
HI
I tried just a momemt back and everything seems to be in order. You can try it again and download.

:)

ramani :)
(Subramanian.G)
 
Ramani ,

Thank you . I just tried it and it's working. Do you think I will be able to print the same task on 2 different printers at the same time?

Thanks ,
David
 
hi

Print file has to be configured to print all files in a specified directory to be sent to that PCs or a networks printer. So all files put into that folder will be printed to the one printer specified in the print files configuration.

Now if any networked Pcs also send their files to this shared directory, print file will see them and print to the assigned printer.

So multiple PCs can use the same print file directory.

The trick is in FP to save the report as text file in the specified directory (from which work station is not a problem).

:)

ramani :)
(Subramanian.G)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top