Larry,
I've used that option successfully, but remember having trouble with
printers that are connected over the network. I can't really tell from
your email, but make sure there's a space between the OPTION PRINTER and
the pipe symbol. Also, just double check to make sure the default
printer is not set in the report itself.
Here's some samples that work (both local and network):
LBLPRINT packlab WHERE jonum = .vjonum AND prod# = .vprod +
OPTION PRINTER +
|copies .vnlabels +
|printer_name DYMO LabelWriter 2 +
|ORIENTATION LANDSCAPE
Works fine, even with the spaces in the printer name.
In another app, I allow the user to choose Local or Network:
CHOOSE vprinter FROM #LIST 'Local Label Printer,Ink Making Label
Printer' +
TITLE 'Which Printer?' CAPTION 'Printers'
SET VAR vprinter = (IFEQ(.vprinter,'Local Label Printer', 'Smart Label
Printer 220', '\\INKMAKING\InkLabel'))
PRINT formulalbl &vwhr +
OPTION PRINTER +
|copies .vncopies +
|orientation PORTRAIT +
|paper_name diskette +
|printer_name &vprinter
I remember that in Win2K, when I connected to the 'Inkmaking InkLabel'
printer, it showed in the printers as Smart label Printer 220 on
Inkmaking. When I tried to use that as the printer name, it didn't
work. I had to set up another local Smart label Printer, and then
change the port to \\inkmaking\inklabel.
Dawn
-----Original Message-----
From: Lawrence Lustig [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 2:41 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Using OPTION Printer_Name
I'm trying to do the following:
PRINT ReportName WHERE LIMIT = 1 OPTION Printer|PRINTER_NAME
MyPrinterName
without success. The report seems to go to the default printer
(although it gets stuck in the queue and doesn't print). For
MyPrinterName I am subsituting in the name of the printer as shown in
the printers and faxes folder (I renamed it to have no spaces in case
that was the problem).
Any suggestions?
--
Larry