John,
These settings are also documented in the help file. Assuming you have FP DOS 2.x, look at the "Configuring FoxPro" topic near the beginning of the help topics. Most everything you need to know about CONFIG.FP is there.
If there is something specific you are unsure of, please ask about it.
Running Win 2000... I use the batch file (below) for a DOS based program (FoxPro Dos) to point the lpt1: port to the print server (george) and to set the screen to full screen and to load and run the DOS program (which is on another machine mapped as x
The network is CAT5, switch a high speed NetGear, 100Mhz network cards and all machines ping each other at less than 1ms. Windows routines (also mapped; no batch file) are fast. I have both TCP/IP and Netbeui active... (and a fixed IP address (which W2000 seems to like).
The PROBLEM IS:
loading the dos program is slow and printing to george is slow...
The QUESTION IS:
Is there something else I can try to do to speed this up ?
The Batch file is"
#cmd
rem @ echo off
cls
x:/
net use lpt1: \\george\george-p1 /PERSISTENT:YES
mode con: cols=80 lines=25
rem
x:\foxpro ortho.prg -t
net use lpt1: /delete
c:/
exit
[/b]
So I tried a number of solutions.... I made
files=50
buffers=50
in the config.sys file
nope... no help
It still took 32 seconds to print from the FOXPRO
BUT (and I think this is a clue for those smarter than I...) as soon as I exited the FOXPRO... the document printed IMMEDIATELY.... ie if I closed the app within 2 seconds of printing a page then it printed right then ....
IS THIS A CLUE ????
So is it a print spooler problem ? I changed the settings from print spooler to print immediately ... NO change
Then I looked further
Additional clues (maybe)
I added
[IFSMGR]
printbuftime=1
to the system.ini NO Help
I went to the dos command .. went to x: issued a dir>prn: command... went like a rocket
Aha (he thinks)..... its actually the foxpro slowing things down.... tried the command
print x:anyfile.xyz from dos command is fast
but printing from inside foxpro is still slow.....
So I have worked out that it is a FOXPRO setting that seems to be causing the slow printing...
So I though I'd review config.fp for clues to speed up printing... hence the question.
Sorry for long answer, but my girls (office staff) would appreciate an answer so that they caould print faster.
John,
I guess I'd first ask why you are running a .PRG file? This requires loading up the entire development environment and if this isn't (legally) installed on each of your user's systems, bringing all that code down from the network is going to take a while. Does your CONFIG.FP (which I assume is also on the network but would be better if local) at least point to the local systems for the following:
resource=c:\foxtemp\foxuser
help=OFF
TALK=OFF
tmpfiles=c:\foxtemp
sortwork=c:\foxtemp
editwork=c:\foxtemp
progwork=c:\foxtemp
It might start quicker if you created an .EXE and installed the FP runtimes on the local system (assuming you bought the distribution kit).
When running FPD under windows, it a well known fact that IF your code uses the SET PRINTER TO ... statement, that you'll need to include a
SET PRINTER TO && clear for release to Window's spooler
SET PRINTER TO && 2nd is sometimes required (never hurts)
to release the print job. (Either from a REPORT ... TO PRINTER, or a SET DEVICE TO PRINTER.)
First thanks for the time in replying, I very much appreciate it.
why you are running a .PRG file? This requires loading up the entire development environment and if this isn't (legally) installed on each of your user's systems, bringing all that code down from the network is going to take a while.
I have purchased a full version FPD (years ago).. I have successfully run this app via the .prg (via a shortcut) on Win 3.11 and Win 98 and both were veryfast.
So why is the samee app (even via a .prg) slow on Win 2000 ???
Does your CONFIG.FP (which I assume is also on the network but would be better if local) at least point to the local systems for the following:
resource=c:\foxtemp\foxuser
help=OFF
TALK=OFF
tmpfiles=c:\foxtemp
sortwork=c:\foxtemp
editwork=c:\foxtemp
progwork=c:\foxtemp
My config.fp contains CATMAN=OFF (and that is it !!!)
It might start quicker if you created an .EXE and installed the FP runtimes on the local system (assuming you bought the distribution kit).
Was already running (under W98) without an .exe (although I agree with your point)
When running FPD under windows, it a well known fact that IF your code uses the SET PRINTER TO ... statement, that you'll need to include a
SET PRINTER TO && clear for release to Window's spooler
SET PRINTER TO && 2nd is sometimes required (never hurts)
to release the print job. (Either from a REPORT ... TO PRINTER, or a SET DEVICE TO PRINTER.)
Once again, the code ran well in Win 98 without the SET PRINTER TO
command
But I could certainly look at it
I just do not understand why it is that it runs slower under Win2000..
My experience is that a once a printer (any printer) is shared, spooling is ON no matter what you set it to. In other words. all the printer settings like "RAW", "print direct to port", "spool msdos jobs" and so on mean nothing once you share any printer.
My system needs to not only print, but open a cash drawer via the printer so spooling is deadly (cash drawer opens 20 seconds after you walk away), I now use an auto print share box on all machines that need to share a printer.
Foxpro does have a problem "releasing" print jobs. Issuing a second SET PRINT TO usually works. Novell has a feature to ENDCAPTURE (ENDCAP) or ypou can set the TIMEOUT in the Netware client to spool a job afetr x number of seconds. See if your network client or your OS has such a feature.
I too would prefer a direct connection.... but Office geography does not permit.... furthermore we have had networked printers before.... (OR HAVE WE ???)
STOP brain storm....STOP I think you are right... as I think back, this slowness has only come from the time we have used networked printers...
So I read and tried the
SET PRINTER TO SET PRINTER TO
suggestion to release the spooler and it STILL didn't work.
{actually I use set prin on and then set prin off commands in the app}
I am convinced the delay is in FPD not in the 2000 DOS environment...
It worked very well; sorry I was so dumb in not learning what you were telling me....
One residual problem:
I found one section of my program where the printing was still slow.. It turned out that I had accidentally programmed out a
??CHR(27)+"E"
escape code for the printer. (I manually write all printer code in PCL5) Once the escape code was returned, all aspects of the program are working well.
I and my office team are very grateful for your assistance....
I am learning VFP7....(I am still dumb, but still trying)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.