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 - Printing with word wrapping still overflows the width of a page
Summary: Printing with word wrapping still overflows the width of a page
Status: RESOLVED INVALID
Alias: None
Product: utilities
Classification: Unclassified
Component: Print (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-21 01:33 UTC by zian
Modified: 2007-10-23 16:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wrap lines (48.73 KB, application/octet-stream)
2007-10-22 11:15 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
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.