Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 297952

Summary: [Printing] Unable to reset PrinterData.copyCount to 1
Product: [Eclipse Project] Platform Reporter: Deepak Azad <deepakazad>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Carolyn MacLeod <carolynmacleod4>
Severity: normal    
Priority: P3 CC: daniel_megert, deepakazad, Silenio_Quarti
Version: 3.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Deepak Azad CLA 2009-12-16 07:47:30 EST
Build Identifier: I20091210-1301

I am trying to set copyCount of a org.eclipse.swt.printing.PrinterData object to 1, but the value is not set to 1 (it dosent change) . If I try to set it to any value greater than 1 things work as expected (the value is changed correctly).

I am trying to do this in org.eclipse.jface.text.TextViewer.print(StyledTextPrintOptions)

Reproducible: Always
Comment 1 Dani Megert CLA 2009-12-16 08:10:58 EST
The API says:

	 * Note that this field may be controlled by the printer driver
	 * In other words, the printer itself may be capable of printing
	 * multiple copies, and if so, the value of this field will always be 1.

Now, this (i.e. 1) is what we see in the data that we get back from the printer dialog, however, it is not specified what happens if we set the value before passing it to the dialog. Also, it seems very strange that values > 1 are honored but 1 is not.

Also, "the value of this field will always be 1." should be changed to something like: "in that case the value set by the PrintDialog will be 1".
Comment 2 Leo Ufimtsev CLA 2017-08-03 12:32:07 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 3 Eclipse Genie CLA 2020-08-01 18:56:54 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.