Guest User

Untitled

a guest
Jun 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Dim oldPrinter as VB.Printer
  2. Set oldPrinter = Printer
  3. Dim p as VB.Printer
  4. For Each p In VB.Printers
  5. If p.DeviceName = "PDF Printer Name" Then
  6. Set Printer = p
  7. End If
  8. Next
  9. ' Print Document Here '
  10. Set Printer = oldPrinter
Add Comment
Please, Sign In to add comment