jxf6888 你好,
当使用黑白打印机打印时,默认情况下打印结果为:forecolor 为 black 、backcolor 为 white 。
针对此问题,可做一下设置:
- this.textControl1.ForeColor = Color.White;
- this.textControl1.BackColor = Color.Black;
- System.Drawing.Printing.PrintDocument pd = new System.Drawing.Printing.PrintDocument();
- pd.DefaultPageSettings.Color = true;
- this.textControl1.PrintPreview(pd);
复制代码 |