SHARE
TWEET

Untitled

a guest Oct 12th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. List<string> switches = new List<string>
  2. {
  3.     "-empty",
  4.     "-dPrinted",
  5.     "-dFirstPage=1",
  6.     "-dLastPage=1",
  7.     "-dPrinted",
  8.     "-dBATCH",
  9.     "-dNOPAUSE",
  10.     "-dNOSAFER",
  11.     "-dNumCopies=1",
  12.     "-sDEVICE=mswinpr2",
  13.     @"-sFONTPATH=" + System.Environment.GetFolderPath(System.Environment.SpecialFolder.Fonts),
  14.     "-sOutputFile=%printer%" + printQueue.FullName,
  15.     "-f",
  16.     inputFile
  17. };
RAW Paste Data
Top