我的标签页上有一些文字,为了打印该标签页,我将其转换为图像并将该图像作为打印件,因此打印后该文本不清楚
PrintdDocument 上的代码是
private void printDocument1_PrintPage(object sender,System.Drawing.Printing.PrintPageEventArgs e)
{
Bitmap btmp = new Bitmap(this.tabPage1.Width, this.tabPage1.Height);
tabPage1.DrawToBitmap(btmp, new Rectangle(0,0, this.tabPage1.Width, this.tabPage1.Height));
e.Graphics.DrawImage(btmp, 0,150);
}