cant print via macro on Terminal Server

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top