FIX: DHTMLEdit.SaveDocument Creates a Zero-Byte Length File in Windows 98 (310358)



The information in this article applies to:

  • Microsoft Windows 98
  • 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.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Create a new project in Microsoft Visual Basic. Add the DHTML Edit Control, and then create a push button on the Visual Basic form.
  2. Add the following code:
    Private Sub Command1_Click()
        DHTMLEdit1.SaveDocument "c:\save.htm", False
    End Sub
    
    Private Sub Form_Load()
        DHTMLEdit1.LoadDocument "c:\test.htm"
    End Sub
    					
  3. Create a Test.htm file that contains the following:
    <HTML>
    <HEAD>
    <TITLE>Hello, world</TITLE>
    </HEAD>
    <BODY>
    Edit me to your heart's delight.
    </BODY>
    </HTML>
    						
  4. Save Test.htm to c:\Test.htm.
  5. Build and run the Visual Basic application.
  6. Edit the document, and then save it.
  7. The Save.htm file is zero bytes in length.

Modification Type:MinorLast Reviewed:12/21/2004
Keywords:kbbug kbfix KB310358