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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PRINTING REPORT TO SLOW 1

Status
Not open for further replies.

venado

Programmer
Nov 28, 2000
35
CA
WHEN I SEND I INCORPORATE AN OLD REPORT WRITTEN IN FOX-DOS INTO VFPRO. THIS REPORT IS WRITTEN AS:
@ ... SAY .... AND SO ON. NOW, WHEN THIS REPORT IS SENT TO THE PRINTER, IT TAKE TOO LONG TO PRINT.

THE CODE IS LIKE:
SET PRINTER TO NAME(lcPrinter)
SET DEVICE TO PRINTER
SET CONSOLE OFF
SET PRINTER ON
...
@ ... SAY "....."....
SO ON,

DOES ANYONE HAS ANY IDEA WHY?
Thaks,
venado
 
Hello.

Have you tried to redirect the printing to a file the to print the file?

Hope this helps
Grigore Dolghin
Class Software
Bucharest, Romania
 
The problem could be elsewhere!!!

1. have you set the printer of the Win98/Win95/WineMe not to spool MSDOS JOBS. If you want to know how ... please ask again and I will reply.
2. Next choice if you have already done (1).
a. Edit the system.ini file
b. after [386enh] ... add a section as given below
==============
[NetWork}
PrintBufTime = 5

[IFSMGR}
PrintBufTime = 5
==============
5 indicates 5 seconds. You can make it to 2 or 3 or 10 as you wish. Too low a value could make the printer send extra page feeds. Be cautious!

Hope this solves your problem

Ramani
 
Hello,
Try to set printer property to print directly, not use spooling.

Jimmy Jimmy Le
nhan_tiags@yahoo.com
 
[NetWork]
PrintBufTime = 5

[IFSMGR]
PrintBufTime = 5

Please read the brackets correctly as it appears now.
Also dont forget to reboot the system after the correction.
ramani_g@yahoo.com
 
THANK YOU BOTH FOR YOURS SUGGESTION, I WILL TRY IT AND LET YOU KNOW.venado
 
Hi ramani,
How do you set the printer to not spool MSDOS JOBS or how do you set printer to spool MSDOS JOBS?

I havn't done the first point you mentioned above.

venado.
 
venado:
I use to program reports the same style as you (FoxPro 2.0 code in Visual FoxPro), and I experienced the same problem as you when using my application in a Network environment (Windows 98 network). I tried all the advices above, by Ramani, Grigori and Jimmy, but the result was the same: the printer only ejects the report after I close the application.
But when I use the same appplication in a stand-alone computer, the printer begins to print the report immediately after I ask that report in the application.
Best regards,
Michel

P.S.: Can you indicate a good book about Visual FoxPro 6.0 for programmers like me (who just use code in VFP 6.0, like in FoxPro 2.0) ? Thanks.
 
For the best group of books on FoxPro, go to You may be especially interested in the new book by Cathy Pountney - "The Visual FoxPro Report Writer: Pushing it to the Limits and Beyond". It covers information on the FPD, FPW and VFP report writer.

Rick
 
Hi venado,

if you are printing on a dot printer the problem may be use of graphical font.

If so you can do this:

send your report to a file

SET PRINTER TO mytextfile.txt
SET DEVICE TO PRINT

@ 0,0 SAY ...
@ 1,0 SAY ...
...

SET PRINTER TO
SET DEVICE TO SCREEN

and then

cStr=filetostr("mytextfile.txt")
SET PRINTER TO NAME GETPRINTER()
??? cStr &&& send to printer without passing from printer driver
SET PRINTER TO
SET PRINTER OFF
Andrea C.P.
Italy [atom]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top