Symptoms
Consider the following scenario:
-
You create a Windows Forms application that is based on one of the following versions of the Microsoft .NET Framework:
-
The Microsoft .NET Framework 2.0
-
The Microsoft .NET Framework 3.0
-
The Microsoft .NET Framework 3.5
-
-
You use the PrintDialog class to display a Print dialog box for printing in the application.
-
You select the Collate check box in the dialog box.
Note You can also programmatically set PrintDialogObject.PrinterSettings.Collate to true.
In this scenario, the collate setting does not work. For example, assume that you try to print 2 copies of a 2-page document. When the collate setting is enabled, the pages should be printed in the following order:
Page 1
Page 2 Page 1 Page 2 However, the pages are printed in the following order instead:Page 1
Page 1 Page 2 Page 2Note This issue does not occur in Windows XP or Windows Server 2003.Cause
The issue occurs because the Windows Forms application reads the printer setting data from an incorrect location after the Print dialog box is closed.
Resolution
Hotfix information
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.
To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:http://support.microsoft.com/contactus/?ws=supportNote In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
Prerequisites
To apply this hotfix, you must have the .NET Framework 2.0, the .NET Framework 3.0, or the .NET Framework 3.5 installed on a computer that is running one of the following operating systems:
-
Windows Vista Service Pack 2 (SP2)
-
Windows Server 2008 Service Pack 2 (SP2)
-
Windows 7
-
Windows 7 Service Pack 1 (SP1)
-
Windows Server 2008 R2
-
Windows Server 2008 R2 Service Pack 1 (SP1)
Restart requirement
You have to restart the computer after you apply this hotfix if the affected files are being used during installation. We recommend that you close all .NET Framework applications that lock or use the affected files before you install this hotfix.
Hotfix replacement information
This hotfix does not replace a previously released hotfix.
File information
The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For Windows Vista and Windows Server 2008
For all supported x86-based versions of Windows Server 2008 and Windows Vista
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
10:58 |
x86 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
10:58 |
x86 |
For all supported x64-based versions of Windows Server 2008 and Windows Vista
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
10:59 |
x64 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
10:59 |
x64 |
For all supported IA-64-based versions of Windows Server 2008
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
10:52 |
IA-64 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
10:52 |
IA-64 |
For Windows 7 and Windows Server 2008 R2
For all supported x86-based versions of Windows 7
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
10:59 |
x86 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
10:59 |
x86 |
For all supported x64-based versions of Windows 7 and Windows Server 2008 R2
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
10:59 |
x64 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
10:59 |
x64 |
For all supported IA-64-based versions of Windows Server 2008 R2
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
10:52 |
IA-64 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
10:52 |
IA-64 |
For Windows 7 SP1 and Windows Server 2008 R2 SP1
For all supported x86-based versions of Windows 7 SP1
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
11:03 |
x86 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
11:03 |
x86 |
For all supported x64-based versions of Windows 7 SP1 and Windows Server 2008 R2 SP1
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
11:02 |
x64 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
11:02 |
x64 |
For all supported IA-64-based versions of Windows Server 2008 R2 SP1
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
System.design.dll |
2.0.50727.5734 |
5,062,656 |
22-Aug-2012 |
10:55 |
IA-64 |
System.windows.forms.dll |
2.0.50727.5734 |
5,025,792 |
22-Aug-2012 |
10:55 |
IA-64 |
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
More Information
The following describes the change in behavior before and after you install the hotfix. For example, you create a Windows Forms application that contains the following code:
PrintDialog pd = new PrintDialog();
pd.PrinterSettings.Copies = 2; pd.PrinterSettings.Collate = true; pd.ShowDialog();
The following table shows whether the collate setting is set to true after the Print dialog box appears and then is closed.
Before you install this hotfix
Printer |
PrintDialog.UseEXDialog property is set to false |
PrintDialog.UseEXDialog property is set to true |
XPS writer |
Variable behavior, depending on the OS |
Collate setting is set to false |
Physical printer |
Collate setting is set to false |
Collate setting is set to false |
After you install this hotfix
Printer |
PrintDialog.UseEXDialog property is set to false |
PrintDialog.UseEXDialog property is set to true |
XPS writer |
Variable behavior, depending on the OS |
Collate setting is set to true |
Physical printer |
Collate setting is set to true |
Collate setting is set to true |
References
For more information about the PrintDialog.PrinterSettings property, go to the following MSDN website:
General information about the PrintDialog.PrinterSettings propertyFor more information about the Print dialog box, go to the following MSDN website: