VB.Net实现打印机纸张类型自动更换的方法
 

  End   If

 =====================================================================================================================================

using System.Drawing.Printing.PrintDocument

using System.Drawing.Printing.PrinterSettings.PaperSizeCollection

using System.Drawing.Printing.PaperSize

using System.Drawing.Printing.PageSettings

/////////需要以上引用

PrintDocument pd = new PrintDocument();
PaperSize p=null;
foreach(PaperSize ps in pd.PrinterSettings.PaperSizes)
{   if(ps.PaperName.Equals("A3"))
  p = ps;

pd.DefaultPageSettings.PaperSize = p;

pd.Print(); 

 

 

 

 

相关文章:

  • 2021-07-11
  • 2021-06-11
  • 2021-10-12
  • 2022-12-23
  • 2021-12-11
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-11-23
  • 2021-08-16
  • 2021-04-14
  • 2021-06-02
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案