hello experts
i am working on a project in which i selected multiline textbox for printing invoice as cant able to make a report using report viewer with data from different tables (sql query ) now the the box is printing fine but the font size is very small how to change the font and font size
HEre is my code
i am working on a project in which i selected multiline textbox for printing invoice as cant able to make a report using report viewer with data from different tables (sql query ) now the the box is printing fine but the font size is very small how to change the font and font size
HEre is my code
Code:
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString(txtInvoice.Text, Me.Font, Brushes.Black, 30, 30)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PrintDocument1.Print()
Me.Close()