Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27212

Printing A Receipt?

$
0
0
My application I am building is a point of sales system. Its uses the pos for.net sdk , so it can communicate with my Opos devices(display,printer, cashdrawer etc.)

The problem I am having is getting the application to print a receipt. I am able to print a line of text.

I want to learn how to format the text to be printed.


Here is some code that I have tried:

Code:

myString = "My Pos Application Name" + Chr(13).ToString + Chr(10).ToString  'chr(13) = return , Chr(10) = Line Feed
        myPrinter.PrintNormal(PrinterStation.Receipt, myString)
        myString = "Thank You for Your Business" + Chr(13).ToString + Chr(10).ToString
        myPrinter.PrintNormal(PrinterStation.Receipt, myString)

However, it prints the text on the paper, but I need to add alignment and formating.

I hope there is just a simple way of doing this.

Viewing all articles
Browse latest Browse all 27212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>