Microsoft KB Archive/310358

= FIX: DHTMLEdit.SaveDocument Creates a Zero-Byte Length File in Windows 98 =

Article ID: 310358

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Windows 98 Standard Edition
 * Microsoft Windows 98 Second Edition

-



This article was previously published under Q310358



SYMPTOMS
When you call the SaveDocument DHTML Edit function in Microsoft Internet Explorer 6.0 on a computer running Microsoft Windows 98, SaveDocument creates a document of 0 bytes in length.



RESOLUTION
This problem was corrected in Internet Explorer 6 Service Pack 1.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior
 Create a new project in Microsoft Visual Basic. Add the DHTML Edit Control, and then create a push button on the Visual Basic form.  Add the following code: Private Sub Command1_Click DHTMLEdit1.SaveDocument &quot;c:\save.htm&quot;, False End Sub

Private Sub Form_Load DHTMLEdit1.LoadDocument &quot;c:\test.htm&quot; End Sub   Create a Test.htm file that contains the following:   Hello, world  <BODY> Edit me to your heart's delight. </BODY> </HTML> </li> Save Test.htm to c:\Test.htm.</li> Build and run the Visual Basic application.</li> Edit the document, and then save it.</li> The Save.htm file is zero bytes in length.</li></ol>

Keywords: kbbug kbfix KB310358

-

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

© Microsoft Corporation. All rights reserved.