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

PRINT JOB STATUS SPOOLING WHEN USING NOPAGEEJECT IN FOXPRO 9 2

Status
Not open for further replies.

fxindra

Programmer
Apr 22, 2016
2
ID
Dear Sirs.

I have problem when trying to print report using FOXPRO 9.
when I use
Code:
REPORT FROM NMREPORT TO PRINTER NOCONSOLE
its print immediately
but when i change to
Code:
REPORT FROM NMREPORT TO PRINTER NOPAGEEJECT
its always spooling.
It did not print until i quit foxpro

Code:
SET PRINTER TO DEFAULT
SET CONSOLE OFF
SELECT MYTABLE
REPORT FORM 'REPORTFOLDER\NMREPORT' TO PRINTER NOPAGEEJECT
SET PRINTER TO


One more, if I change the REPORT BEHAVIOR to 90 (SET REPORTBEHAVIOR 90), the print job status is 'SPOOLING-PRINTING'
and its print immediately but stop in the middle and continue again after I quit foxpro.

plase help
Thanks before
 
You should only use NOPAGEEJECT if you have more than one report to print, and you want them all to appear in the same print job. In that case, you would use NOPAGEEJECT with each REPORT FORM command except the last. Issue the last command without that clause, and the entire print job should print as expected.

If you only have one report to print, then do not use NOPAGEEJECT.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
From Help: You must make sure that the last report run does not have a NOPAGEEJECT clause so the print job can be closed.
 
for @MikeLewis and @tbleken
thanks for the answers
I understand now
thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top