My requirement is that I need to print invoice, it may contain 10 line or may contain 20 line. Every thing should be in the one invoice.
For e.g. if you go to any supermarket, if you buy 3 items, you may get small sized bill. If you buy 30 items, you might get big sized bill. I want to implement the same in my vb.NET application.
Exactly I need that how to increase printer page length through program according to the nature of bill.
I am using dot matrix printer and graphic mode printing.
What I have tried:
As of now, I have created text file and print it through Command-line print using below command
Type Printfile.txt > prn
But, the problem is I am not able to format my text file with different font, weight, or size since I am writing it as textfile (notepad).
I am using streamwriter to write the files from VB.NET and as of now I am trying to format it in text files.
I want to format some words to be bold or italic and font size variation but I am not able to do so since I am formatting with text files.
Below are the format:
Store Name
Store Address
----------------------------------------
Gift Receipt
Transaction #: 105
Date: 11/10/2009 Time: 6:10:10
Cashier: 2 Register: 5
----------------------------------------
Item Description Quantity
----------------------------------------
567577 xyz 2
687687 abc 4
– – – – –
----------------------------------------
Net Amount : 6
Thank You for shopping
XYZ StoreName
We hope you’ll come back soon!