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
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