Problem with webbrowser control
-
Hi, I am using this property of web browser control
ie.Document.Script.Document.Write "Text"
and it is giving me this error.
Run-time Error '-2147467259(80004005)':
Automation error
unspecified errorand in debug window it shows "Object doesn't support this action" -------------------------------------------------- Should I have to do some task for enabling automation. ???
-
Hi, I am using this property of web browser control
ie.Document.Script.Document.Write "Text"
and it is giving me this error.
Run-time Error '-2147467259(80004005)':
Automation error
unspecified errorand in debug window it shows "Object doesn't support this action" -------------------------------------------------- Should I have to do some task for enabling automation. ???
Document.Write needs a document to write on. Does the browser control display document? If you don't want to change an existing document, I suggest you look for a method "Document.Open". In JavaScript window.document.open() opens an empty document.