https://bugs.documentfoundation.org/show_bug.cgi?id=161788

            Bug ID: 161788
           Summary: Writeline HTML Error
           Product: LibreOffice
           Version: 24.2.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Set http = CreateObject("MSXML2.XMLHTTP")
strURL = "https://finance.yahoo.com/quote/^GSPC/history";
http.Open "GET", strURL, False
http.Send

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("C:\Users\AHS\Desktop\HTML_SUMMARY.txt", True)
a.WriteLine(http.responseText)

Result in error:

BASIC runtime error.
An exception occurred 
Type: com.sun.star.lang.WrappedTargetRuntimeException
Message: [automation bridge] unexpected exception in IUnknownWrapper::invoke !
Message : 
[automation bridge]:  at
C:/cygwin64/home/buildslave/source/libo-core/extensions/source/ole/oleobjw.cxx:2060
at
C:/cygwin64/home/buildslave/source/libo-core/extensions/source/ole/oleobjw.cxx:250.

Substituting a static string for http.responseText works fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to