Sample code:
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString("XXX Traders", Me.Font, Brushes.Black, 25, 10, New StringFormat())
e.Graphics.DrawString("123456", Me.Font, Brushes.Black, 55, 10, New StringFormat())
e.Graphics.DrawString("XXX Soap", Me.Font, Brushes.Black, 35, 25, New StringFormat())
e.Graphics.DrawString("5", Me.Font, Brushes.Black, 50, 25, New StringFormat())
e.Graphics.DrawString("8", Me.Font, Brushes.Black, 55, 25, New StringFormat())
e.Graphics.DrawString("40", Me.Font, Brushes.Black, 65, 25, New StringFormat())
End Sub
I have a billing papers with format. All i need is just to print the above information to that billing paper.
Ex: Textile show room bill
To print like this: What are the settings, i have to set. Please give me some sample.
Thanks in advance,
KV