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.
Printing the XML design view for an XML schema will print may unnecessary pages. For instance, the purchase order schema will print 8 pages when only 3 are needed (see screen shot). system: Product Version: NetBeans IDE Dev (Build 200807291401) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb) Steps: 1. Create New FIle->XML->Purchase Order 2. Change view to design view 3. Expand all nodes 4. Select print from the file menu, you will see the waste.
Created attachment 66000 [details] screen shot of extra pages.
Created attachment 66001 [details] screen shot of extra pages. PNG
The problem is not in print/preview. The printable component is wrapperPanel from the class org.netbeans.modules.xml.schema.abe.InstanceDesignerPanel of the xml.schema.abe module. This component has too big dimension while real image is less. It leads to the extra pages. To fix this issue, the component should indicates real size via "print.size" property. See example: wrapperPanel.putClientProperty("print.printable", Boolean.TRUE); // NOI18N wrapperPanel.putClientProperty("print.size", new java.awt.Dimension(width, height)); // NOI18N where width x height is real size. Reassign to the xml team...
*** This issue has been marked as a duplicate of 120527 ***