FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Excel ActivePrinter
Posts: 76
Joined: Fri Dec 30, 2005 10:25 AM
Excel ActivePrinter
Posted: Mon Feb 16, 2015 01:13 PM

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

Frank-Peter
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Excel ActivePrinter
Posted: Mon Feb 16, 2015 03:42 PM

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

Posts: 76
Joined: Fri Dec 30, 2005 10:25 AM
Re: Excel ActivePrinter
Posted: Wed Feb 18, 2015 07:48 AM

Thank you, Enrico, it works well !

Frank-Peter

Continue the discussion