Click here to Skip to main content
15,917,568 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Sample code:

VB
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        
        'Customer Information
        e.Graphics.DrawString("XXX Traders", Me.Font, Brushes.Black, 25, 10, New StringFormat())
        'Bill No:
        e.Graphics.DrawString("123456", Me.Font, Brushes.Black, 55, 10, New StringFormat())
        'Product Description
        e.Graphics.DrawString("XXX Soap", Me.Font, Brushes.Black, 35, 25, New StringFormat())
        'Quantity
        e.Graphics.DrawString("5", Me.Font, Brushes.Black, 50, 25, New StringFormat())
        'Price
        e.Graphics.DrawString("8", Me.Font, Brushes.Black, 55, 25, New StringFormat())
        'Total
        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
Posted
Updated 21-Mar-10 2:56am
v6

1 solution

I know English isn't your first language, but we need more information.

You seem to be saying you need help with paper loading on a dot matrix printer. This doesn't make much sense, since software cannot load paper!

Please explain what you are trying to do, and what problem you are having, in more detail.

Thanks!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900