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

Spooling Print Jobs from MS-DOS-Based Applications in V FP

Status
Not open for further replies.

venado

Programmer
Nov 28, 2000
35
CA
I HAVE A HUGE REPORT THAT I PRINT INTO A FILE WITH THIS COMMAND: SET PRINTER TO FILE C:\...\OUT.TXT
USUALLY I HAVE MANY OF THESE REPORTS.. OUT1.TXT,OUT2.TXT ...

WHEN I FINISH PROCESSING, I SEND ALL THESE FILES TO THE PRITER USING A BATCH FILE. i.e. PRN.BAT, INSIDE THIS FILE I HAVE THE FOLLOWING COMMAND:
TYPE C:\...\OUT1.TXT > LPT1:
TYPE C:\...\OUT2.TXT > LPT1: AND SO ON

I RUN THE BATCH FILE: ! /256 PRN.BAT

NOW, THE PROBLEM IS: I GET THE MASSAGE "THE PRINT QUEUE IS FULL WAIT UNTIL SOME DOCUMENT ARE PRINTED".

THE PRINT JOBS ARE NOT BEING SPOOLED, THEY ARE SEND TO THE PORT.

DOES ANYONE KNOWS HOW TO SPOOL THIS KIND OF JOB?

THANKS,
venado

 
venado,
What OS are you running? What are the configuration options for the printer attached to LPT1:? Are you using any Capture or NET commands to redirect LPT1: to a network printer?

Rick
 
I'M USING WINDOW 98 AS CLIENT AND WINDOW NT AS SERVER. MY CODE IN VISUAL FPRO FOR THE REPORT IS AS @ ... SAY ....., WHICH I SEND TO A FILE AND THEN I SEND TO THE PRINTER. THE PRINTER IS CONFIGURED AS GENERIC TEXT.

THE "A.TXT" IS TYPE TO THE DOS PORT inside a batch file. i.e. type a.txt > lpt1: and i run the batch file inside visual foxpro. All this is done inside vfp.

All these work, the only drawback is the printer buffer get full. I want to spool it instead. but how?

venado
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top