The PrinterName property is ReadOnly. If you want to programmatically set the printer, use the SelectPrinter method. It takes three parameters, the PrinterDriver, PrinterName, and PortName.
>I'm trying to set printing related properties and then call the
>PrintReport method.
>
>I get an error on the 'PrinterName' property, telling me I have
>an invalid number of properties.
>
>What I have is:
> WITH oReport
> .PrinterName = cPrinterName
> .PrintOut(FALSE)
> ENDWITH
>
>I want to set the following properties, but I cant seem to
>find all the PEM's for printing.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer