Results 1 to 5 of 5
  1. #1
    Abhinav.k is offline Member
    Join Date
    Dec 2009
    Posts
    3
    Rep Power
    0

    Question sending data to printer directly

    Hi All,

    I would like to connect to a remote printer port (eg lpd at 515) and send data to it(ie. the port) directly .
    For this I would like to format data(which could be any file) into a format which lpd can understand. Please could someone give me some pointers on how this can be done in java ?

    The printer job interface prints data on a local printer which does not seem to be the solution to by problem :(.

    Thanks a lot in advance

    Abhi

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Abhinav.k View Post
    Hi All,

    I would like to connect to a remote printer port (eg lpd at 515) and send data to it(ie. the port) directly .
    For this I would like to format data(which could be any file) into a format which lpd can understand. Please could someone give me some pointers on how this can be done in java ?

    The printer job interface prints data on a local printer which does not seem to be the solution to by problem :(.

    Thanks a lot in advance

    Abhi
    Make that remote printer your default printer and use the Desktop class to print any file.

    kind regards,

    Jos

  3. #3
    Abhinav.k is offline Member
    Join Date
    Dec 2009
    Posts
    3
    Rep Power
    0

    Default

    Thanks a lot for your response.
    That is a possible solution but not what i want.
    I want to send data to a remote port (which i think is possible by socket programming).
    But the data needs to be formatted in such a way that remote printingservice understands it.

    Say print directly to a printer connected at an IP address.

    Thanks

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default

    Find out what format the printer needs, then Google for it with Java?

  5. #5
    Abhinav.k is offline Member
    Join Date
    Dec 2009
    Posts
    3
    Rep Power
    0

Similar Threads

  1. how to send data to network printer
    By santhosh_el in forum AWT / Swing
    Replies: 3
    Last Post: 10-06-2009, 01:21 PM
  2. Sending text to printer
    By Java Tip in forum Java Tip
    Replies: 1
    Last Post: 05-25-2009, 06:14 AM
  3. Sending PCL to Citizen Printer
    By CommanderLuv in forum New To Java
    Replies: 0
    Last Post: 04-02-2009, 02:20 PM
  4. Replies: 2
    Last Post: 02-20-2009, 07:25 AM
  5. Replies: 0
    Last Post: 08-09-2007, 06:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •