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!

printing with @x,xSAY and windows NT

Status
Not open for further replies.

gspro

Programmer
Oct 30, 2000
3
US
When my company upgraded to NT from 3.1, the programs that generate output to the printer using the @x,x SAY format (as opposed to report form) generate an error at the 'set print on' statement or the 'set printer to ' statement. Following is the printer set up code:

SET PRINTER TO
??? " "
@0,0 SAY 'some printer stuff'
SET DEVICE TO PRINT

@ x,x SAY 'something to report'...

SET DEVICE TO SCREEN
SET PRINTER TO

Currently we are rewriting the logic for apps using SQL for the processing and forms for reporting, but is there another option that would allow us to use the apps as they are currently coded?

TIA

 
IF you are use ONLY @SAY's, do not use SET PRINT ON. Only use SET DEVICE TO PRINT.

Also, if your local machine is directed to the local printer port(PRN"), and there is no printer attached, you will of course get an error.

Make sure your LTP1: is directed to a network printer, or that you have a printer physically attached to LPT1:.

Finally, use must then use SET PRINTER TO in order to send the print job.
 
Before starting the application/execute, issue the map command to capture the printer port.

NET USE LPT1: \\myPrintServer\myPrinter /YES

You can use a batch command for this and issue it before the application is run.

ramani :)
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top