InstalledPrinter PrinterSettings与Word中的Settings等不同

时间:2015-08-28 09:32:12

标签: c# .net printing

我使用以下代码获取所有可用打印机的PrinterSettings

var printers = from string p in PrinterSettings.InstalledPrinters
               select new PrinterSettings() { PrinterName = p };

所以我有7台打印机,好吧。但是当我看到PaperSources时,有些事情是错误的。在我的打印机“HP Color LaserJet 3500”上,我得到以下PaperSources

  • [PaperSourceAutomatischauswählenBind= FormSource]
  • [PaperSource Drucker autom。 Auswahl Kind = Custom]
  • [PaperSource Man。 Zufuhr(Fach 1)Kind = Custom]
  • [PaperSource Fach 1 Kind = Custom]
  • [PaperSource Fach 2 Kind = Custom]
  • [PaperSource Nicht bestimmt Kind = Custom]
  • [PaperSource Normal Kind = Custom]
  • [PaperSource Vorgedruckt Kind = Custom]
  • [PaperSource Briefkopf Kind = Custom]
  • [PaperSource Transparentfolie Kind = Custom]
  • [PaperSource Vorgelocht Kind = Custom]
  • [PaperSource Etiketten Kind = Custom]
  • [PaperSource Briefpapier Kind = Custom]
  • [PaperSource Recyclingpapier Kind = Custom]
  • [PaperSource Farbpapier Kind = Custom]
  • [PaperSource Leicht(< 75 g / m2)Kind = Custom]
  • [PaperSource Schwer 106-163 g / m2 Kind = Custom]
  • [PaperSource Karton> 163 g / m2 Kind = Custom]
  • [PaperSourceHochglänzend75-105g / m Kind = Custom]
  • [PaperSourceHochglänzend,schwer Kind = Custom]
  • [PaperSource ToughPaper Kind = Custom]
  • [PaperSource Briefumschlag Kind = Custom]

但为什么这么多?在Microsoft Word我只看到前5个?有趣的是,前五个在他们的SourceName开头有一个额外的空间?看起来其他PaperSources不是PaperSources,而是纸张的类型? (对不起,SourceNames是德语版)。

在另一台打印机(HPLJ2055dn_SPB)上,我收到以下PaperSources

  • [PaperSourceAutomatischauswählenBind= FormSource]
  • [PaperSource Erster freier Schacht Kind = Custom]
  • [PaperSource Manueller Einzug(Schac Kind = Custom)
  • [PaperSource Schacht 1 Kind = Custom]
  • [PaperSource Schacht 2 Kind = Custom]
  • [PaperSource Schacht 3 Kind = Custom]
  • [PaperSource Schacht 4 Kind = Custom]

在第三个PaperSource中,SourceName被裁剪了?再次在Microsoft Word中,一切都很好。

希望你们中的一些人有解释!

提前致谢!

1 个答案:

答案 0 :(得分:0)

所以我再搜索了30分钟,发现了这个问题:getting additional PaperSource details

对于其他人,也有同样的问题。