Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Print unwanted copy
Re: Print unwanted copy [message #44104 is a reply to message #44073] |
Thu, 25 December 2014 11:09 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Klugier wrote on Mon, 22 December 2014 16:29Hello Forlano,
For me this code look strange (PrinterJob - Windows code - line 102):
for(int c = 0; c < ((dlg.Flags & PD_COLLATE) ? dlg.nCopies : 1); c++)
for(int i = dlg.nFromPage - 1; i <= dlg.nToPage - 1; i++)
for(int c = 0; c < ((dlg.Flags & PD_COLLATE) ? 1 : dlg.nCopies); c++)
page.Add(i);
Double "c" definitions in loop is definitely not good idea.
And why for the one condition there is different result:
(dlg.Flags & PD_COLLATE) ? dlg.nCopies : 1)
(dlg.Flags & PD_COLLATE) ? 1 : dlg.nCopies)
Sincerely,
Klugier
Ah, that actually is OK: Collate means that copies are kept "together", I mean, if collate is active and you are printing 3 pages 2 copies, you are supposed to get 1 1 2 2 3 3, while with collate 'off', you get 1 2 3 1 2 3. Which IMO is excactly what the loop does.
Anyway, that doubling of copies is (for me) long existing bug, it has rather something to do with some misunderstanding of printer driver and windows print dialog. It affects only some printers and some drivers. Which reminds me that I have not tried with my current win8.1 and current printer, time to investigate this bug again...
|
|
|
|
|
Print unwanted copy
By: forlano on Sun, 21 December 2014 14:15
|
|
|
Re: Print unwanted copy
By: Klugier on Sun, 21 December 2014 22:54
|
|
|
Re: Print unwanted copy
By: forlano on Mon, 22 December 2014 08:46
|
|
|
Re: Print unwanted copy
By: Klugier on Mon, 22 December 2014 16:29
|
|
|
Re: Print unwanted copy
By: forlano on Mon, 22 December 2014 18:30
|
|
|
Re: Print unwanted copy
By: mirek on Thu, 25 December 2014 11:09
|
|
|
Re: Print unwanted copy
By: forlano on Thu, 25 December 2014 14:06
|
|
|
Re: Print unwanted copy
By: mirek on Thu, 25 December 2014 20:44
|
|
|
Re: Print unwanted copy
By: mirek on Thu, 25 December 2014 20:56
|
|
|
Re: Print unwanted copy
By: forlano on Thu, 25 December 2014 22:01
|
Goto Forum:
Current Time: Fri Apr 26 03:37:49 CEST 2024
Total time taken to generate the page: 0.04048 seconds
|