aspose file tools*
The moose likes Beginning Java and the fly likes Printing to Wireless printer. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Printing to Wireless printer." Watch "Printing to Wireless printer." New topic
Author

Printing to Wireless printer.

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
I'm using javax.print package to print a text document. I can get the default printer (I can print the name of the printer). But when I create the DocPrintJob object and call it's .print() function,
nothing happens .

The only difference between this printer and the one I test on at the office is that the one at the office is a network printer (non-wireless) and the one at my house is wireless.
Is there something different I have to do to get it to print to a wireless printer? No exception is throw so I don't know how to debug it to see what the problem is.

Thanks,

Justin


You down with OOP? Yeah you know me!
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
I added a PrintJobListener to the job, only the 'DataTransferCompleted' and 'NoMoreEvents' events are raised.

Justin
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
here is my code:


Justin
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
And the PrintJobListener class code:

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
I'm starting to think Java's ability to print to HP printers is limited if not non-existent.

I have a wireless laserjet at home that won't print and I have a LasterJet 1000 series at work that won't print as well.

No more HP printers for me!

Justin
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
Ok... I got the bright idea maybe I should look at the print queue to see if it's even getting that far, and it is.
I looked at the document properties and it says 0 bytes. I tried some different flavors, but none work besides AUTOSENSE.

The print job starts and then just deletes itself, but I'm sure that's because it's 0 bytes...

anyone know a way to deal with this problem?

Justin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing to Wireless printer.
 
Similar Threads
No printing with Win XP and AirPort Extreme
Displaying a list of printers..
Printing to a Network Printer
Need to get IP Address
Multi purpose Printer on Linux