-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b77
-
x86
-
windows_xp
-
Verified
When enabling collate, only one copy is printed.
Steps to Reproduce
------------------
OS: Win XP
Run the attached test case, which prints a 3 page document.
This is a regression introduced somewhere in-between Mustang-b37 to Mustang-b40. This passes on Mustang-b36. This is specific to WinXP and not reproducible on SolSparc10.
When I debugged this little further, I noticed something interesting. This bug is reproducible only when I use PrinterJob and not reproducible when I use DocPrintJob. I tried printing a 'printable' using DocPrintJob and I have specified copies as 2 and SheetCollate.COLLATED. I got 2 copies as expected. But when I print the same thing through PrinterJob, I got only one copy on the same machine, with the same printer.
This is reproducible with all Swing-text printing and JTable printing also. To reproduce, do the following:
1.Open SwingSet2 using Mustang b71.
2. Goto JTable demo.
3. Click on the print button.
4. Choose copies as '2' and choose 'Collated' checkbox.
5. Click on the print button.
If you get only one copy of the JTable, the bug is reproduced.
I have also attached a testcase which prints the same document using PrinterJob as well as DocPrintJob. You can reproduce this bug with '2D Print' option.
Steps to Reproduce
------------------
OS: Win XP
Run the attached test case, which prints a 3 page document.
This is a regression introduced somewhere in-between Mustang-b37 to Mustang-b40. This passes on Mustang-b36. This is specific to WinXP and not reproducible on SolSparc10.
When I debugged this little further, I noticed something interesting. This bug is reproducible only when I use PrinterJob and not reproducible when I use DocPrintJob. I tried printing a 'printable' using DocPrintJob and I have specified copies as 2 and SheetCollate.COLLATED. I got 2 copies as expected. But when I print the same thing through PrinterJob, I got only one copy on the same machine, with the same printer.
This is reproducible with all Swing-text printing and JTable printing also. To reproduce, do the following:
1.Open SwingSet2 using Mustang b71.
2. Goto JTable demo.
3. Click on the print button.
4. Choose copies as '2' and choose 'Collated' checkbox.
5. Click on the print button.
If you get only one copy of the JTable, the bug is reproduced.
I have also attached a testcase which prints the same document using PrinterJob as well as DocPrintJob. You can reproduce this bug with '2D Print' option.