-1
如何更改我的打印字體大小?這是我正在使用的代碼。如何更改打印中的字體大小?
private void PrintDocumentOnPrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawString(
this.textBox5.Text + " " + this.textBox6.Text + " - " + this.textBox8.Text,
this.textBox5.Font, Brushes.Black, 10, 25);
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Bienvenido, Toma tú Gafete!");
PrintDocument printDocument = new PrintDocument();
printDocument.PrintPage += PrintDocumentOnPrintPage;
printDocument.Print();
}
完美!有用!謝謝! –