You cannot print text in a terminal server session in Windows Server 2003, in Windows Server 2008, or in Windows Vista if the printer uses the "Generic / Text Only" driver

Symptoms

Consider the following scenario:

  • You have a computer that is running Windows Server 2003, Windows Server 2008, or Windows Vista.

  • You install a printer that uses the Generic / Text Only driver.

  • You run an application that uses the Graphics::DrawString method in a terminal server session.

  • You use this application to try to print text to the printer.

In this scenario, no text is printed.

Note This issue occurs in only a terminal server session. This issue does not occur when you run the application in a console session

Cause

This issue occurs because the ExtTextOut function is called incorrectly.

When text is printed by using the Graphics::DrawString method in a terminal server session, the ExtTextOut function is called incorrectly if the ETO_GLYPH_INDEX option is enabled. Therefore, the text is incorrectly sent to the printer directly without first being rendered.

Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=supportNote The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running one of the following operating systems:

  • Windows Server 2003 Service Pack 2 (SP2)

  • Windows Vista Service Pack 2 (SP2)

  • Windows Server 2008 Service Pack 2 (SP2)

For more information about how to obtain a Windows Server 2003 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

889100 How to obtain the latest service pack for Windows Server 2003

For more information about how to obtain a Windows Vista service pack, click the following article number to view the article in the Microsoft Knowledge Base:

935791 How to obtain the latest Windows Vista service pack

For more information about how to obtain a Windows Server 2008 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

968849 How to obtain the latest service pack for Windows Server 2008

Registry information

To use the hotfix in this package, you do not have to make any changes to the registry.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The English (United States) version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.

Windows Server 2003 file information notes
  • In addition to the files that are listed in these tables, this hotfix also installs an associated security catalog file (KB981650.cat) that is signed with a Microsoft digital signature.

For all supported x86-based versions of Windows Server 2003

File name

File version

File size

Date

Time

Platform

Gdiplus.dll

5.2.6001.22729

1,748,992

20-Jul-2010

15:45

x86

Gdiplus.man

Not Applicable

398

20-Jul-2010

15:47

Not Applicable

Gdiplus.man

Not Applicable

608

20-Jul-2010

15:48

Not Applicable

For all supported x64-based versions of Windows Server 2003

File name

File version

File size

Date

Time

Platform

Gdiplus.dll

5.2.6001.22729

2,192,384

20-Jul-2010

13:36

x64

Gdiplus.man

Not Applicable

400

20-Jul-2010

13:36

Not Applicable

Gdiplus.man

Not Applicable

612

20-Jul-2010

13:36

Not Applicable

Gdiplus.dll

5.2.6001.22729

1,748,992

20-Jul-2010

13:36

x86

Gdiplus.man

Not Applicable

398

20-Jul-2010

13:36

Not Applicable

Gdiplus.man

Not Applicable

608

20-Jul-2010

13:36

Not Applicable

For all supported IA-64-based versions of Windows Server 2003

File name

File version

File size

Date

Time

Platform

Gdiplus.dll

5.2.6001.22729

4,910,592

20-Jul-2010

13:36

IA-64

Gdiplus.man

Not Applicable

399

20-Jul-2010

13:36

Not Applicable

Gdiplus.man

Not Applicable

610

20-Jul-2010

13:36

Not Applicable

Gdiplus.dll

5.2.6001.22729

1,748,992

20-Jul-2010

13:36

x86

Gdiplus.man

Not Applicable

398

20-Jul-2010

13:36

Not Applicable

Gdiplus.man

Not Applicable

608

20-Jul-2010

13:36

Not Applicable

Windows Vista and Windows Server 2008 file information notes

Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.

  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.

For all supported x86-based versions of Windows Server 2008 and of Windows Vista

File name

File version

File size

Date

Time

Platform

Gdiplus.dll

5.2.6001.22729

1,748,992

15-Jul-2010

14:48

x86

Gdiplus.dll

5.2.6002.22447

1,748,992

15-Jul-2010

16:05

x86

For all supported x64-based versions of Windows Server 2008 and of Windows Vista

File name

File version

File size

Date

Time

Platform

Gdiplus.dll

5.2.6001.22729

2,192,384

15-Jul-2010

15:14

x64

Gdiplus.dll

5.2.6002.22447

2,192,896

15-Jul-2010

16:18

x64

Gdiplus.dll

5.2.6001.22729

1,748,992

15-Jul-2010

14:48

x86

Gdiplus.dll

5.2.6002.22447

1,748,992

15-Jul-2010

16:05

x86

For all supported IA-64-based versions of Windows Server 2008

File name

File version

File size

Date

Time

Platform

Gdiplus.dll

5.2.6001.22729

4,910,592

15-Jul-2010

14:44

IA-64

Gdiplus.dll

5.2.6002.22447

4,911,104

15-Jul-2010

15:45

IA-64

Gdiplus.dll

5.2.6001.22729

1,748,992

15-Jul-2010

14:48

x86

Gdiplus.dll

5.2.6002.22447

1,748,992

15-Jul-2010

16:05

x86

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

For more information about the Graphics::DrawString method, visit the following Microsoft Web site:

General information about the "Graphics::DrawString" methodFor more information about the ExtTextOut function, visit the following Microsoft Web site:

General information about the "ExtTextOut" functionFor more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional file information

Additional file information for Windows Vista and for Windows Server 2008

Additional files for all supported x86-based versions of Windows Vista and of Windows Server 2008

File name

Update.mum

File version

Not Applicable

File size

3,565

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

X86_585be81f9380d48e24caf385facb1f3a_6595b64144ccf1df_1.0.6001.22729_none_3892b82a4f76ff65.manifest

File version

Not Applicable

File size

627

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

X86_abb699d97c16c05ec49ae97958d7ac6b_6595b64144ccf1df_1.0.6002.22447_none_eae08114420c2710.manifest

File version

Not Applicable

File size

627

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

X86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6001.22729_none_87a8ba4ee36c9536.manifest

File version

Not Applicable

File size

4,160

Date (UTC)

15-Jul-2010

Time (UTC)

15:05

Platform

Not Applicable

File name

X86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6002.22447_none_8786e002e3bba79e.manifest

File version

Not Applicable

File size

4,160

Date (UTC)

15-Jul-2010

Time (UTC)

17:45

Platform

Not Applicable

Additional files for all supported x64-based versions of Windows Vista and of Windows Server 2008

File name

Amd64_0802849d9f09d19d639e3b1d78ea32e7_6595b64144ccf1df_1.0.6002.22447_none_d2f45733d2832901.manifest

File version

Not Applicable

File size

922

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

Amd64_5e011b3e3f3e04fc49ce6cbe7294516f_6595b64144ccf1df_1.0.6001.22729_none_d88c22fc04345452.manifest

File version

Not Applicable

File size

922

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

Amd64_9abe6234c073c556b38e53ea3d745c9d_6595b64144ccf1df_1.0.6001.22729_none_d0333faddf89db80.manifest

File version

Not Applicable

File size

631

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

Amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6001.22729_none_3ffb8377cef06c30.manifest

File version

Not Applicable

File size

4,178

Date (UTC)

15-Jul-2010

Time (UTC)

15:33

Platform

Not Applicable

File name

Amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6002.22447_none_3fd9a92bcf3f7e98.manifest

File version

Not Applicable

File size

4,178

Date (UTC)

15-Jul-2010

Time (UTC)

18:13

Platform

Not Applicable

File name

Update.mum

File version

Not Applicable

File size

3,593

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

X86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6001.22729_none_87a8ba4ee36c9536.manifest

File version

Not Applicable

File size

4,160

Date (UTC)

15-Jul-2010

Time (UTC)

15:05

Platform

Not Applicable

File name

X86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6002.22447_none_8786e002e3bba79e.manifest

File version

Not Applicable

File size

4,160

Date (UTC)

15-Jul-2010

Time (UTC)

17:45

Platform

Not Applicable

Additional files for all supported IA-64-based versions of Windows Server 2008

File name

Ia64_44143bca46c43e4eb3d5aae7ab7d1f9a_6595b64144ccf1df_1.0.6001.22729_none_0601b3d22c3172b4.manifest

File version

Not Applicable

File size

629

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

Ia64_942620524b3eadbe9f6a7c49c1191e37_6595b64144ccf1df_1.0.6001.22729_none_484071b6215f2aa0.manifest

File version

Not Applicable

File size

920

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

Ia64_ed22ecc641822cfbd81b05880d5bc298_6595b64144ccf1df_1.0.6002.22447_none_a2a29daf93fcc6d8.manifest

File version

Not Applicable

File size

920

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

Ia64_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6001.22729_none_87a89810e36ccd1a.manifest

File version

Not Applicable

File size

4,169

Date (UTC)

15-Jul-2010

Time (UTC)

14:59

Platform

Not Applicable

File name

Ia64_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6002.22447_none_8786bdc4e3bbdf82.manifest

File version

Not Applicable

File size

4,169

Date (UTC)

15-Jul-2010

Time (UTC)

16:08

Platform

Not Applicable

File name

Update.mum

File version

Not Applicable

File size

2,748

Date (UTC)

16-Jul-2010

Time (UTC)

07:56

Platform

Not Applicable

File name

X86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6001.22729_none_87a8ba4ee36c9536.manifest

File version

Not Applicable

File size

4,160

Date (UTC)

15-Jul-2010

Time (UTC)

15:05

Platform

Not Applicable

File name

X86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6002.22447_none_8786e002e3bba79e.manifest

File version

Not Applicable

File size

4,160

Date (UTC)

15-Jul-2010

Time (UTC)

17:45

Platform

Not Applicable

Besoin d’aide ?

Développez vos compétences
Découvrez des formations
Accédez aux nouvelles fonctionnalités en avant-première
Rejoindre Microsoft Insider

Ces informations vous ont-elles été utiles ?

Nous vous remercions pour vos commentaires.

Merci pour vos commentaires. Il serait vraisemblablement utile pour vous de contacter l’un de nos agents du support Office.

×