GetDevMode(printerName, string.Format(SettingsFileNameFormat, testName)) String SettingsFileNameFormat = Console.ReadLine() Ĭonsole.Write("SAVE: Settings set name: ") If (!commands.TryGetValue(command, out action))Ĭonsole.Write("Settings file path format: ")
The ET-2850 features outstanding print quality, auto-duplex printing, a high-resolution flatbed scanner, and convenient color display making it the perfect family printer. So we first retrieve what trays printer have, using code: var setting = new PrinterSettings() įoreach (PaperSource tray in setting.PaperSources)Ĭonsole.WriteLine("\t): ", string.Join(", ", commands.Keys)) So you’ll worry less about running out of ink, and save a lot on replacement ink. After the odd pages are printed, flip the stack of pages over, and then under Settings, click Print All Pages. Click the Print button at the top of the gallery.
Under Settings, click Print All Pages.Near the bottom of the gallery, click Only Print Odd Pages.
Hp 6830 printer duplex printing setup code#
In the code above printer tray is specified as integer because some printers have not standart values for trays (we had this issue with HP - it's tray codes described here). You can also use the following procedure to print on both sides: Click the File tab. _applicationObject.PrintOut(Background: ref backgroundPrint, FileName: sourceFile) ĭoc.Close(ref saveChanges, ref _missing, ref _missing) _applicationObject.ActivePrinter = printerPath For example printer tray selection for first page and for other pages can be done using MS Word automation: var doc = _(FileName: ref sourceFile, ReadOnly: ref readOnly,ĭoc.PageSetup.FirstPageTray = (WdPaperTray) firstPageTra圜ode ĭoc.PageSetup.OtherPagesTray = (WdPaperTray) otherPagesTra圜ode At first I wonder why printing options couldn't be set up in single place. We have a project of managing printing documents.