This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm trying to print an XSD schema, the design view, but NetBeans prints it bad... so little in the middle of the page, and it crops the image so it cuts some text....
How is this issue going ? It's really annoying not to have the feature to print ANYTHING ..... Is a problem of my system ? I'm using Linux Ubuntu 8.10, NetBeans 6.5 or 6.7, Gnome....and ALL what I try to print is printing bad ( so little in the middle of the page ). I've tried the same in a Windows XP and it works fine. Also I've tried to print in my system with other apps and it works fine.....so it seems the problem is NetBeans with Linux and Gnome......
Vladimir, please look at this in context whether it's defect or feature.
Please provide the version of JDK, detailed steps to reproduce. If you print to pdf, please attach this pdf. If you print a source or BPEL diagram, is it ok? Looks like the problem is in JDK. The print module in NetBeans uses standard JDK API to call *system* print dialog which sends data to a printer. Client of JDK (print module in NetBeans) does not know anything about printers settings, OS, etc. If print results are fine in other OS (I don't see problem under Windows, Solaris), the problem in the printing implementation in JDK for Ubuntu. This problem can't be fixed from NetBeans side, so closing as WONTFIX.
I'm using JDK 1.6.0.13 and when NB prints to a file it prints quite right, but printing to the printer it prints so small in the center of the page. Have you tried with my same platform ? ( Linux Ubuntu 8.10, Gnome, JDK 1.6.0.13, network printer ). If all other apps prints well in my system, why NB does not ? Is there any way to test if the issue comes from NB or not ?
As I wrote NetBeans (print module) doesn't do any specific actions for printing to network printer or under Linux (or another OS). Prepared data are sent to "printer" via JDK API and NetBeans doesn't know is it real printer or file or something else. Print module takes the picture from the view as is, no modifications. It is impossible to do any fix from NetBeans side. If printing works incorrectly in all cases and under all OS, I agree it will be a bug in print module, but in this case it is a bug in JDK/printer drivers. What is the result of printing of sources or BPEL diagram? I have to close this issue against NetBeans printing, I don't see the root in the printing module.
SOLVED : I have changed my printer driver from the Postcrip one to HP LaserJet M3027 MFP - CUPS+Gutenprint v5.2.0-rc1 and now it prints well.........and not only Netbeans but all the other java applications. Thanks a lot to all.