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!

How to dynamically set printer in CR9

Status
Not open for further replies.

rschaeferhig

IS-IT--Management
May 2, 2003
10
US
I have a report I need to print on a scheduled basis directly to a printer. The problem is I need to dynmically set the printer based on a database field. The CRReport.PrinterName property is read-only. Anyone know how to direct a report to a specific printer?

I need to do this in VB6 in a batch mode. I'm not displaying the report in CRViewer, just printing.

Any help would be greatly appreciated.
 
Try the SelectPrinterMethod from the Report object.

Syntax

object.SelectPrinter DriverName, PrinterName, PortName

Parameters

DriverName - the printer driver.
PrinterName - the printer name.
PortName - the port name.

Here's a good reference for objects available to the RDC:


-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top