and it doesn’t print to the printer I select in the Mac OS X printer select dialog box. It seems to print to first printer in the list (if it happens to be plugged in). Any idea what’s wrong?
I’m running Mac OS 10.4 (problem occurs on both a G5 powermac and a macbook pro)
In my experiance it prints to the default printer, which doesn’t have to be the first one. But changing printers in the print dialog doesn’t change it.
I understand that IT2Be’s tool plugin does let you get and set the default printer.
I tried loading the sample from the IT2Be plugin… there’s got to be a better way. First of all, a lot of our users have several printers with the same name… some of which are disabled or have other errors. This offers no way to distinguish. Second, on the mac at least, it launches a printer select application.
I can’t believe that Servoy can’t out of the box print to a selected printer??? I’ve never heard of anything like it…
No, not really. How do I pass the name of the printer that is selected in the print dialog back to servoy? It isn’t clear how either of these functions help with this.
Can someone post a global method that prints using the printer selected in the OS print dialog?
This seems to me like a possible problem in a Java 1.5_xx maintenance release, since Java 1.5.0_03 does not have this problem and the print dialog is not part of Servoy.
What version of Java are you using?
The problem appears to have started to occurr with 1.5.0_06-64 on Mac. We have reported a bug with Apple. If the bug affects anybody please file it with apple at: http://radar.apple.com so that Apple is aware of the urgency.
Meanwhile the following ugly workaround appears to work: rename the printer such that it is first in the list of printers by prefixing it for example with 001.
Printing has not changed in Servoy, it worked with Apple’s previous release, this is a bug that Apple has introduced: Servoy is not crippled but Apple’s Java implementation.
The other Java apps you refer to probably do not use Apple’s printer dialog which Servoy does.
When can it be fixed? Best is to ask Apple. Alternatively you could escalate this issue with Servoy if you have a Service Level Agreement in which case our engineers can investigate if they can write specific code to work around this Apple bug.
Another data point: running Java 1.4 on both OS-X 10.3 and 10.4 this problem only arises on the 10.4 systems. Curiously, 10.3’s Java version claims to be 1.4.2-56 but 10.4’s claims only to be 1.4.2-54.
Anyone know what I can do to get a better Java on 10.4?
Is there any news on this front? I have a bunch of macs that can’t switch printer off of their default because of this bug. This is a really embarrassing problem. It makes me as a developer look bad.
Is there any word on this problem? I still have issues with the ability to print to different printers on the mac side. I also took a look at it2be and can’t find anything about switching printers.
Any help would be greatly appreciated.
I wonder if reseting printers on the Mac has any effect.
Open System Prefs
Open Print & Fax
Select the printer and click Printer Setup
Under ‘Printer Setup Utility’ on the menubar click Reset Printing System,
Click Reset