So what you want to do is to auto increment the transactions number, with the transaction number being a variable within your code. If I understand correctly. Do you only use the app or do you use sql with your app? I would say that if its just within your app the best would be int trans = 0; Number++; or if you use sql you can set that each new entry must be unique and auto increment where you can specify the starting point and the amount with wich to increment.
Most printers are graphics printers. I have found that I can create class that builds the receipt as an image then send it to the printer. The api's are usually availiable from the mfg to configure the printer and they will give you examples. I went this direction because getting text lined up is pretty difficult and in the end just looks bad.
What problem are you having? If you need samples, check this[^] out. If it's learning materials in general, go buy some books, and if possible, take some .NET training courses.
aerosmith2k1 wrote:
cheating makes no sense what so ever
he's asking for complete source to an inventory control program. if not in this post, in another post he made. yeah i call that cheating.