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.

Bug 119566

Summary: Printing with word wrapping still overflows the width of a page
Product: utilities Reporter: zian <zian>
Component: PrintAssignee: Vladimir Yaroslavskiy <yaroslavskiy>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: wrap lines

Description zian 2007-10-21 01:33:41 UTC
Even with word wrapping enabled, when I print code, the printout uses 2 8.5x11 pages horizontally.

For example, attempting to print the following Java comment will take 2 pages:
	// isBlackTurn() returns true if it's the black player's turn, false
	// if it's the white player's turn.
Comment 1 Vladimir Yaroslavskiy 2007-10-22 11:13:42 UTC
Can't reproduce.
When I check "Wrap Lines", I see only one page.
Comment 2 Vladimir Yaroslavskiy 2007-10-22 11:15:10 UTC
Created attachment 51394 [details]
wrap lines
Comment 3 zian 2007-10-22 17:29:56 UTC
It looks like we have an inconistent state.

Under Tools | Options -> Advanced Options -> System -> Print Settings, I have "Wrap Lines" checked.

But under print preview, the word wrap checkbox is unchecked.
Comment 4 Vladimir Yaroslavskiy 2007-10-23 11:50:57 UTC
Tools | Options -> Advanced Options -> System -> Print Settings
is used by org.openide.actions.PrintAction (if NetBeans version != full).

Full version of NetBeans has PrintAction from org.netbeans.modules.print module.
This action opens Print Preview dialog and has own options in separate dialog.
It doesn't use Tools | Options -> ... Print Settings.
Comment 5 zian 2007-10-23 16:11:39 UTC
Looks like a UI issue, then. Right now, it's too easy to get confused because the user has to know about NetBeans's 
logic for handling such settings.