S
Scott Numbers
Hello,
I am currently developing a Word Add-In using Visual Studio 2005 (Not
using VSTO) that creates and manages custom fields (Field Type:
wdFieldAddIn) within a Word document. As part of the user interface in
Word, the user can select one or more fields in the document and press
F9 to have the fields update themselves. Here is the problem I am
having: I am unable to locate any events within the Word Application
or Document interfaces that can be used to capture an event for
"Update Fields" or an F9 keypress/keydown/keyup. I need to be able to
update my custom fields when the F9 key is pressed and my fields are a
part of the selection.
I am not new to programmimg with Microsoft products but I am
relatively inexperienced with Office development/integration.
Everytime I have worked with Excel or Word in the past, I have felt
like the Events supported are woefully sparse. I am hoping that I am
missing some key concept that is used with the Office Object Models
that obscures these events.
I have searched through Google Groups with no luck. I have purchased
several books on Word and Visual Studio and none cover anything
besides the simple Document Open, Save and Close events. I can't
imagine that Microsoft would expect developers to write comprehensive
Add-Ins with these few Events. What am I missing?
Anyway, I would appreciate any information on this subject and if you
have any suggestions on good books on the subject of developing MS
Word Add-Ins And/Or any books on how to go about creating and
supporting a new "Field" type that would be displayed in the list
provided when the user selects "Insert / Field" from the menu.
Thank you in advance,
Scott Numbers
Scott.Numbers @ hq.doe.gov
I am currently developing a Word Add-In using Visual Studio 2005 (Not
using VSTO) that creates and manages custom fields (Field Type:
wdFieldAddIn) within a Word document. As part of the user interface in
Word, the user can select one or more fields in the document and press
F9 to have the fields update themselves. Here is the problem I am
having: I am unable to locate any events within the Word Application
or Document interfaces that can be used to capture an event for
"Update Fields" or an F9 keypress/keydown/keyup. I need to be able to
update my custom fields when the F9 key is pressed and my fields are a
part of the selection.
I am not new to programmimg with Microsoft products but I am
relatively inexperienced with Office development/integration.
Everytime I have worked with Excel or Word in the past, I have felt
like the Events supported are woefully sparse. I am hoping that I am
missing some key concept that is used with the Office Object Models
that obscures these events.
I have searched through Google Groups with no luck. I have purchased
several books on Word and Visual Studio and none cover anything
besides the simple Document Open, Save and Close events. I can't
imagine that Microsoft would expect developers to write comprehensive
Add-Ins with these few Events. What am I missing?
Anyway, I would appreciate any information on this subject and if you
have any suggestions on good books on the subject of developing MS
Word Add-Ins And/Or any books on how to go about creating and
supporting a new "Field" type that would be displayed in the list
provided when the user selects "Insert / Field" from the menu.
Thank you in advance,
Scott Numbers
Scott.Numbers @ hq.doe.gov