Daniel Heuman
Guest
|
I'm working on an Add-In Express add-in for Word written in C#. However, I can't figure out how to access the ActiveDocument from a Custom TaskPane.
For example, I can easily access the ActiveDocument from a custom ribbon with this line:
Word.Document docToAccess = WordApp.ActiveDocument;
From that point on, I have full access to all the methods of ActiveDocument in an instance called 'docToAccess'.
However, I really want to be able to do that within a Custom Taskpane but when I use that line, it doesn't recognise the existence of WordApp. I'm sure there must be an easy solution, but I can't figure it out. Can anyone make any suggestions? |
|
Eugene Astafiev
Guest
|
|
Daniel Heuman
Guest
|
Hi Eugene,
I meant Advanced Office Task Panes, thanks for the clarification.
Are there any examples using the WordAppObj property that way? I'm sure you're pointing me in the direction I want to go, but I'm still struggling to get access to the ActiveDocument. |
|
Eugene Astafiev
Guest
|
|