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 3 of 3

Thread: Java to printer ?

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java to printer ?

    I am not sure exactly where to post as I am new here. I have been looking for a good Java forum and I believe I am in the right place to help me learn as I continue my journey through college.

    Well, my parents own a business and I want to create a form and implement it onto their website where individuals can place orders and I will build the form from the ground up. The order would be for "cakes" as they own a bakery and I am going to create a pricing guideline depending on options they choice. I was wondering if for a beginner (I am currently leaving the beginner stage but in comparison to many I still am a beginner) will it be possible for me to create this form with little trouble. The main thing I would have trouble with is I want the order form to print out from a local printer every time someone submits a form.


  2. #2
    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: Java to printer ?

    You haven't provided us with enough information, or really asked a specific question that is easy to answer. You mention the words website and form...how does this involve java?

  3. #3
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Java to printer ?

    Do you want the order form to print to a local printer in your parent's business, or a local printer for the user (the user's personal printer)?

    One thing you have to consider when programming an applet in java (which is what this would be) is that the applet is ran locally on the user's computer, not the website's server. So if you wanted to notify your parents in some way when an order is submitted, you would have to somehow send a notification to the web server (possibly via a servlet). Now, just because the applet is ran on the user's machine, doesn't mean you cannot modify files on the web server (provided you have the correct permissions). You would probably update files via an FTP query.

    Think of this more as a message system. The user inputs a message, then send it. The message goes through the server and notifies the user receiving the message. And then the message being recieved is displayed to the user. You need to figure out how to notify the recieving user (in this case, your parent's business) that a message (or order) has been sent/submitted. I personally do not know how to do this, but other people on this forum may have some additional advice.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

Similar Threads

  1. Printing in a thermal printer?
    By rosseldrintaupa in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: September 29th, 2012, 05:08 AM
  2. Printer control
    By bardd in forum Java Theory & Questions
    Replies: 4
    Last Post: August 31st, 2012, 08:15 AM
  3. direct output to printer
    By anandck in forum Java Theory & Questions
    Replies: 0
    Last Post: June 3rd, 2012, 04:52 AM
  4. Java Vierual Printer
    By abu_alfouz in forum Member Introductions
    Replies: 0
    Last Post: July 25th, 2011, 08:16 AM
  5. Java printer selection
    By pnvsgupta in forum Java SE APIs
    Replies: 4
    Last Post: July 23rd, 2011, 11:31 AM