C
chefk
Hello,
My problem is this. When I try to print to a redirected printer from
Word 2003 document in a 2003 Terminal Server session via a macro, th
document does not print. If I print manually via the Word menu, it doe
print. I honestly do not expect an answer as I think this is a MS issu
(they have had a few with redirected printing), but what I am hopin
for is possibly another method of printing that may work. What can
use besides .PRINTOUT? I am not a Word expert, so be gentle. Thanks i
advance.
Mike
here is my code:
Public Sub SwitchPrinterAndPrint(printer As String)
Dim strActivePrinter As String
' Get active printer.
strActivePrinter = Application.ActivePrinter
' Change to the passed printer
Application.ActivePrinter = printer
' Print the active document to selected printer
ActiveDocument.PrintOut
' Change back to the default printer.
Application.ActivePrinter = strActivePrinter
End Su
My problem is this. When I try to print to a redirected printer from
Word 2003 document in a 2003 Terminal Server session via a macro, th
document does not print. If I print manually via the Word menu, it doe
print. I honestly do not expect an answer as I think this is a MS issu
(they have had a few with redirected printing), but what I am hopin
for is possibly another method of printing that may work. What can
use besides .PRINTOUT? I am not a Word expert, so be gentle. Thanks i
advance.
Mike
here is my code:
Public Sub SwitchPrinterAndPrint(printer As String)
Dim strActivePrinter As String
' Get active printer.
strActivePrinter = Application.ActivePrinter
' Change to the passed printer
Application.ActivePrinter = printer
' Print the active document to selected printer
ActiveDocument.PrintOut
' Change back to the default printer.
Application.ActivePrinter = strActivePrinter
End Su