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

DOES ANY ONE KNOW HOW TO....

Status
Not open for further replies.

venado

Programmer
Nov 28, 2000
35
0
0
CA
DOES ANYONE KNOW HOT TO SPOOL MSDOS JOBS CALL FROM VFP.

I HAVE A BATCH FILE "x.bat" AND INSIDE I HAVE COMMANDS TO PRINTS SOME TEXT FILES. LIKE

TYPE a.txt > \\servername\printername
and so ....

THEN I RUN x.bat from vfpro.

problem: IT SEEMS THAT THE PRINT JOB IS NOT SPOOLED, INSTEAD IT IS SEND TO THE PRINTER BUFFER WHICH IS NOT BIG ENOUGH TO HOLD THE JOB. SO THE USER GET A MESSAGE " WAIT UNTIL SOME DOCUMENTS ARE PRINTED" Abort Retry Fail...

ANY SUGGESTION...

Thaks,
venado
 
Try setting the printers "Spool MSDOS print jobs". You access it through the printers property sheet, the details tab, and click the port settings button on.
 
Hi Venado,

SET PRINTER TO NAME \\servername\printername
TYPE A.txt TO PRINTER

and kick the batch files to the curb. Jon Hawkins

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Instead of directing reports to individual files and then building the x.bat, you can build all the reports into a single file and then direct it to printer.

SET PRINTER TO [FileName [ADDITIVE] | PortName]

The word ADDITIVE could help you to print append to a file name already used.

This could solve your problem

ramani
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top