How can I use a special printer (not the default one) with oExcel:Print() ?
I know, that I can get the active printer with oExcel:ActivePrinter
But when I set another printer with
oExcel:ActivePrinter := "Adobe PDF" or other,
I get an error Excel.Application 0000 S_OK: _ACTIVEPRINTER
Is there a solution?
Thanks very much
Excel ActivePrinter
Excel ActivePrinter
Frank-Peter
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Excel ActivePrinter
Frank,
set the new printer as default printer and look at the result of
? oExcel:ActivePrinter
Then use exactly that string as the new printer name.
EMG
set the new printer as default printer and look at the result of
? oExcel:ActivePrinter
Then use exactly that string as the new printer name.
EMG