Microsoft KB Archive/929863

= FIX: Windows Internet Explorer 7 does not display a &quot;Save As&quot; dialog box when a script that uses the ExecCommand function together with the SaveAs command runs on a Windows XP-based computer and on a Windows Server 2003-based computer =

Article ID: 929863

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-



SYMPTOMS
Consider the following scenario:
 * You use Windows Internet Explorer 7 on a Microsoft Windows XP-based computer or on a Microsoft Windows Server 2003-based computer.
 * You develop a script that uses the ExecCommand function together with the SaveAs command.
 * You set the second parameter in the ExecCommand function to the true value.

Note After you set the second parameter in the ExecCommand function to the true value, you expect Internet Explorer 7 to display a Save As dialog box when you run the script.

In this scenario, Internet Explorer 7 may not display the Save As dialog box when you run the script on the computer.

This problem occurs if you set the third parameter in the ExecCommand function to a file that is not the text file type. The text file type includes .txt files, .html files, and .htm files. For example, you set the third parameter in the ExecCommand function to an .xls file by using the following code. Document.execCommand('SaveAs',true,’sample.xls’) Note This problem does not occur on a Windows Vista-based computer.



CAUSE
This problem occurs because of a limitation in the ExecCommand function. When you run the script that uses the ExecCommand function together with the SaveAs command, the script can only save a file that is the text file type.



Hotfix information
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows XP service pack that contains this hotfix.

To resolve this problem immediately, 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 Web site:

http://support.microsoft.com/contactus/?ws=support

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 Windows XP Service Pack 2 (SP2) installed.

Restart requirement
You have to restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other previously released hotfixes.

Registry information
To use one of the hotfixes in this package, you do not have to make any changes to the registry.

File information
The English 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.

Hotfix information for Microsoft Windows Server 2003
This problem also occurs on a Microsoft Windows Server 2003-based computer. However, the hotfixes for Windows Server 2003 are all private builds.

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows Server 2003 service pack that contains this hotfix.

To resolve this problem immediately, 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 Web site:

http://support.microsoft.com/contactus/?ws=support

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 Windows Server 2003 Service Pack 2 (SP2) or Windows Server 2003 Service Pack 1 (SP1) installed.

Restart requirement
You must restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other previously released hotfixes.

Registry information
To use one of the hotfixes in this package, you do not have to make any changes to the registry.

File information
The English 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.

Windows Server 2003 with SP2, x86-based versions




STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
This hotfix installer adds the following registry values:

These registry values are required for this hotfix to take effect.

After you apply this hotfix, the script that uses the ExecCommand function together with the SaveAs command can save more types of files. For example, the script can save the following types of files:
 * A .doc file
 * A .dot file
 * An .xls file
 * An .xlt file
 * A .ppt file
 * A .pot file

For more information, 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

For more information about the SaveAs command, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/ms537418.aspx

Keywords: kbfix kbexpertiseadvanced kbpubtypekc kbqfe kbhotfixserver KB929863

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.