how to print Test-page on default Printer?

后端 未结 3 636
误落风尘
误落风尘 2021-01-25 14:40

how to print Test-page on default Printer

using C# Winform Code ?

thank\'s in advance

3条回答
  •  青春惊慌失措
    2021-01-25 15:29

    Use WMI, specifically, the PrintTestPage method of the Win32_Printer class.

    See this MSDN article for how to execute a WMI method from C#: How To: Execute a Method

提交回复
热议问题