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:
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.
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)
I hope there is just a simple way of doing this.