Bug 13638 - [misc] Print selection prints whole document
Summary: [misc] Print selection prints whole document
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-04-12 11:07 EDT by Patrick Sager CLA
Modified: 2006-11-27 09:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Sager CLA 2002-04-12 11:07:01 EDT
In the print dialog, if you select to print only the selected part of a java 
source file, the whole file will be printed.
Comment 1 Nick Edgar CLA 2002-04-12 22:08:53 EDT
Defer to post 2.0
Comment 2 Randy Giffen CLA 2002-08-12 09:28:20 EDT
Reopen for investigation
Comment 3 Simon Arsenault CLA 2003-02-07 13:32:23 EST
Print is a retargetable action. The text editor is responsible for the print 
behavior (or maybe its the compilation unit editor?)
Comment 4 Dani Megert CLA 2006-11-22 04:11:24 EST
StyledTextPrintOptions does not allow to specify a range.
Comment 5 Grant Gayed CLA 2006-11-24 10:37:39 EST
FH I just tried this in the latest and it works.  I assume this has been fixed at some point?
Comment 6 Dani Megert CLA 2006-11-24 10:43:18 EST
>FH I just tried this in the latest and it works.  I assume this has been fixed
>at some point?
What exactly did you try?
Comment 7 Felipe Heidrich CLA 2006-11-24 11:28:37 EST
For PrinterData.scope, StyledText implements: ALL_PAGES and PAGE_RANGE. It does not implement SELECTION.
Comment 8 Dani Megert CLA 2006-11-27 09:17:20 EST
Sorry for the noise. This works just fine (either via PrinterData.scope=PrinterData.SELECTION) or by selecting the corresponding radio button in the print dialog.