我使用以下代码获取所有可用打印机的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
中,一切都很好。
希望你们中的一些人有解释!
提前致谢!