I have tried to convert Bryces OLE code for sending HTML to IE to COM in K2k and have a little problem:code:
; HTML source code
$html=<html>hello</html>
; create IE object (works)
$ie=createobject("internetexplorer.application")
; display form (works)
$ie.visible="true"
; open a blank page (works)
$ie.navigate("about:blank")
while $ie.busy<>0 and @error=0 loop
; Get a handle to the open document. $doc is a object according to vartypename() so I think this works
$doc=$ie.document
; write the data in $html to document. Doesn't work 
$doc.write="$html"
I have tried every combination of $ie.document and .write that I can think of. These cause Dr Watson:
$doc.write()="$html"
$doc.write("$html")
I have also tried $ie.document.write to no avail
help?

Here is the original OLE source
code:
$ie = olecreateobject("internetexplorer.application")
$nul = oleputproperty($ie, "visible", "s", "$true")
$nul = olecallfunc($ie, "navigate", "s", "about:blank")
$current = olegetproperty($ie, "busy")
while olegetproperty($ie, "busy") <> "0" and @error = 0 loop
; Get a handle to the open document ...
$doc = val("&" + olegetproperty($ie, "document"))
$nul = olecallfunc($doc, "write", "s", "$html")
cj