Bug 161788 - Writeline HTML Error
Summary: Writeline HTML Error
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
24.2.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-26 03:25 UTC by NOYB
Modified: 2024-06-26 03:25 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NOYB 2024-06-26 03:25:11 UTC
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.