Printing detail in a receipt
Sorry for my English. I have a project to create an application where you can print all the detail to be written on a receipt (no more manual writing). I already have blank receipts. All I want to know is how to do that printing the details at exact position in my blank receipt. I'm starting to read about Jasper Reports but I don't know how it will work since most of its example are creating template.
Re: Printing detail in a receipt
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.
Can you provide more detail about your app? Is this a console app or a GUI app? If GUI, which framework are you using? Can you show the code that prints blank receipts?
1 Attachment(s)
Re: Printing detail in a receipt
Sorry about that. Its a GUI application and I'm using Netbeans. What I mean about the receipt is that the client have the blank receipt paper. Instead of manual writing using pen, he want to use an application that he can just type all the details and print it at the piece of blank receipt paper. This is my first time project having connection with device like printer.
Attachment 2893
Re: Printing detail in a receipt
Quote:
This is my first time project having connection with device like printer.
See the following tutorial on the java printing API.
Lesson: Printing (The Java™ Tutorials > 2D Graphics)