F
flekso
which object model should one use if he needs to add an element to the local
document from within the vb editor (no script code) ?
'and what's wrong with this:
Dim app As FrontPage.Application
Dim doc As DispFPHTMLDocument
Dim ele As IHTMLElement
Set app = Application
Set doc = app.ActiveDocument
Set ele = doc.createElement("IMG") ' Permission denied (Error 70)
doc.body.innerHTML = doc.body.innerHTML & e.outerHTML 'it doesn't get
this far
Set app = Nothing
Set doc = Nothing
Set ele = Nothing
'?
document from within the vb editor (no script code) ?
'and what's wrong with this:
Dim app As FrontPage.Application
Dim doc As DispFPHTMLDocument
Dim ele As IHTMLElement
Set app = Application
Set doc = app.ActiveDocument
Set ele = doc.createElement("IMG") ' Permission denied (Error 70)
doc.body.innerHTML = doc.body.innerHTML & e.outerHTML 'it doesn't get
this far
Set app = Nothing
Set doc = Nothing
Set ele = Nothing
'?