Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Printing detail in a receipt

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default 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.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default 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?

  3. The Following User Says Thank You to GregBrannon For This Useful Post:

    maronski (April 28th, 2014)

  4. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default 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.

    6.jpg

  5. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Printing detail in a receipt

    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)

  6. The Following User Says Thank You to copeg For This Useful Post:

    maronski (May 1st, 2014)

Similar Threads

  1. detail
    By ashish1765 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 9th, 2012, 08:57 AM
  2. Replies: 11
    Last Post: April 5th, 2012, 08:34 PM
  3. Replies: 1
    Last Post: September 28th, 2011, 07:29 AM
  4. [SOLVED] Scanner Issues: Read for more detail, thanks.
    By Staticity in forum Java SE APIs
    Replies: 3
    Last Post: September 8th, 2011, 03:38 AM
  5. [SOLVED] Printing Array without printing empty elements
    By CarlMartin10 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 12th, 2010, 02:41 AM