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
- Enrico Maria Giordano
- Posts: 8737
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 2 times
- 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