Re: [PoSh] Out-IE / method named 'IHTMLDocument2_write'
- From: "Vivek Sharma [MSFT]" <viveksha@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 11 May 2006 11:56:15 -0700
Thanks for reporting it, I'll update my post. There was an internal thread on this issue---for some folks document.write() works, for others it does not. It probably has something to do with the interop/com assemblies that are on a given machine.
~vivek
"dreeschkind" <dreeschkind@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:805B4F6A-EDB1-4A87-BF14-609AB87B79A0@xxxxxxxxxxxxxxxx
Found a solution:
$ie = new-object -com InternetExplorer.Application
$ie.navigate("about:blank")
while ($ie.busy) { sleep 1 }
$ie.visible = $true
#$ie.document.IHTMLDocument2_write("$input")
$ie.document.write("$input")
$ie
--
greetings
dreeschkind
"dreeschkind" wrote:
Has anyone got this working:
http://www.viveksharma.com/techlog/2006/05/09/technet-webcast-follow-up-out-html-out-ie/
I get the following error message:
PoSh 1 PS:\>get-childitem | select Name,Length | out-html | out-ie
Method invocation failed because [System.__ComObject] doesn't contain a
method named 'IHTMLDocument2_write'.
At E:\Eigene Dateien\PSConfiguration\Out-IE.ps1:5 char:34
+ $ie.document.IHTMLDocument2_write( <<<< "$input")
I use IE v7.0.5346.5 (Beta 2) maybe this causes the error?
--
greetings
dreeschkind
.
- Prev by Date: Re: [PS] - Help with becoming better
- Next by Date: Re: PC information
- Previous by thread: Re: [PS] - Help with becoming better
- Next by thread: Running a VBS under admin right
- Index(es):