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

Help on Printing Forxpro 2.0 2

Status
Not open for further replies.

frankone

Vendor
Aug 3, 2002
21
US
Foxpro lan 2.0 on Win2K Server, Trying to print to Win 98
workstation located on another Win 98 workstation.
Win2k server user login script as follows;
NET USE LPT3 \\DANNY\EPSON /PERSISTENT:YES

Have printer map to lpt3:\\DANNY\EPSON

I can get to print from windows but not when I run
a foxpro report. the report are coded, not using
the report generator.
Thank You


 
after the report form command type in these two lines

set printer to
set printer to

to clear the printer buffer and finish the printjob.
 
>after the report form command type in these two lines
>set printer to

This functions well ONLY on LPT1 and PRN device !
Foxpro does not "close" print job by SET PRINT TO
which was printed to LPT2 and LPT3.
You can "close print job" imediatelly by
lnHandle=FOPEN('LPT3') (without colon!) and then
=FCLOSE(lnHandle).

I tried this on WIn98 and WinXP and this function very well.

Tomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top