G
Guest
I found the following code
Sub SwitchPrinter()
Dim strActivePrinter As String
' Get active printer.
strActivePrinter = Application.ActivePrinter
' Change to the Microsoft Fax printer driver.
Application.ActivePrinter = "Microsoft Fax"
' Print the active document to Fax.
ActiveDocument.PrintOut
' Change back to the default printer.
Application.ActivePrinter = strActivePrinter
End Sub
At this link
http://support.microsoft.com/default.aspx?scid=kb;en-us;202017
But i do not know how to implement it into my database. Can someone let me
know how to put this into a event procedure(onMouseClick) for a button.
Sub SwitchPrinter()
Dim strActivePrinter As String
' Get active printer.
strActivePrinter = Application.ActivePrinter
' Change to the Microsoft Fax printer driver.
Application.ActivePrinter = "Microsoft Fax"
' Print the active document to Fax.
ActiveDocument.PrintOut
' Change back to the default printer.
Application.ActivePrinter = strActivePrinter
End Sub
At this link
http://support.microsoft.com/default.aspx?scid=kb;en-us;202017
But i do not know how to implement it into my database. Can someone let me
know how to put this into a event procedure(onMouseClick) for a button.