You are currently offline, waiting for your internet to reconnect

FIX: PrintDialog.PrinterSettings.Collate property does not work in Windows Vista, Windows Server 2008, Windows Server 2008 R2 and Windows 7

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 2
Note 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:Note 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 nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201210:58x86
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201210:58x86
For all supported x64-based versions of Windows Server 2008 and Windows Vista
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201210:59x64
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201210:59x64
For all supported IA-64-based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201210:52IA-64
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201210:52IA-64

For Windows 7 and Windows Server 2008 R2

For all supported x86-based versions of Windows 7
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201210:59x86
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201210:59x86
For all supported x64-based versions of Windows 7 and Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201210:59x64
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201210:59x64
For all supported IA-64-based versions of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201210:52IA-64
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201210:52IA-64

For Windows 7 SP1 and Windows Server 2008 R2 SP1

For all supported x86-based versions of Windows 7 SP1
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201211:03x86
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201211:03x86
For all supported x64-based versions of Windows 7 SP1 and Windows Server 2008 R2 SP1
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201211:02x64
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201211:02x64
For all supported IA-64-based versions of Windows Server 2008 R2 SP1
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.57345,062,65622-Aug-201210:55IA-64
System.windows.forms.dll2.0.50727.57345,025,79222-Aug-201210:55IA-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

PrinterPrintDialog.UseEXDialog property is set to falsePrintDialog.UseEXDialog property is set to true
XPS writerVariable behavior, depending on the OSCollate setting is set to false
Physical printerCollate setting is set to falseCollate setting is set to false
After you install this hotfix
PrinterPrintDialog.UseEXDialog property is set to falsePrintDialog.UseEXDialog property is set to true
XPS writerVariable behavior, depending on the OSCollate setting is set to true
Physical printerCollate setting is set to trueCollate setting is set to true
References
For more information about the PrintDialog.PrinterSettings property, go to the following MSDN website: For more information about the Print dialog box, go to the following MSDN website:
Properties

Article ID: 2744968 - Last Review: 09/10/2012 09:36:00 - Revision: 1.0

Microsoft .NET Framework 3.5, Microsoft .NET Framework 3.0, Microsoft .NET Framework 2.0

  • kbqfe kbhotfixserver kbfix kbsurveynew kbexpertiseadvanced KB2744968
Feedback
dy>