J
Jan Hyde
(This code is actually VB code)
Dim strOldPrinter As String
Dim strPrinterName As String
strOldPrinter = wdDoc.Application.ActivePrinter
strPrinterName = Printer.DeviceName
wdDoc.Application.ActivePrinter = strPrinterName [1]
wdDoc.PrintOut
wdDoc.Application.ActivePrinter = strOldPrinter [2]
As soon a line [1] has been issued the printer object can no
longer be used
'484 Problem getting printer information from the system'
As soon as line [2] has been issued the printer object works
as normal.
I'm using word 2000.
This problem only occurs with certain printer drivers.
Is this a known issue? Is there a way around the problem?
Line [1] also causes the default printer on the Pc to be
changed. This is highly undesirable since it can cause other
programs to print to the wrong printer. Is there a way I can
tell word 2000 to leave the default printer alone?
J
Dim strOldPrinter As String
Dim strPrinterName As String
strOldPrinter = wdDoc.Application.ActivePrinter
strPrinterName = Printer.DeviceName
wdDoc.Application.ActivePrinter = strPrinterName [1]
wdDoc.PrintOut
wdDoc.Application.ActivePrinter = strOldPrinter [2]
As soon a line [1] has been issued the printer object can no
longer be used
'484 Problem getting printer information from the system'
As soon as line [2] has been issued the printer object works
as normal.
I'm using word 2000.
This problem only occurs with certain printer drivers.
Is this a known issue? Is there a way around the problem?
Line [1] also causes the default printer on the Pc to be
changed. This is highly undesirable since it can cause other
programs to print to the wrong printer. Is there a way I can
tell word 2000 to leave the default printer alone?
J