Is there a way to access the document object in the task pane?

B

Bill Brown

My task pane has buttons to access various views within my form. I want to be
able to hide the buttons depending on a routing code field within the form.

Is there a way to access the document object in the task pane?

I tried using:
set objHTMLdoc = XDocument.View.Window.TaskPanes(0).HTMLDocument
objHTMLdoc.all.mybutton.style.display = "none"

but get an object required error.

This is run out of the onswitchview event which is called from the onload
event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top