View Single Post
  #1 (permalink)  
Old October 14th, 2003, 04:59 PM
JLS JLS is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing print drivers

I have a VB application which prints templates from word using the users default print driver then it saves the output to a file using the default print driver.
This is the code which saves the file.

************************************************** ****************
Sub MakeImageFile()

If gsFilename <> "ERROR" Then
  ActiveDocument.PrintOut OutputFileName:=Trim(gsFilename), PrintToFile:=True
End If
End Sub

************************************************** ****************
I need to save the output using a different print driver.

I prefer that all of this be hidden from the user.

Is there a way to change the print driver within this macro?