We have had a system in place for ten years where we have a file share that's storing Word templates. A central repository holds submitted documents from users which have been created from the templates (.dot,.dotm's) on their machines, and they are stored
in this repository in aggregate. These templates contain macros; we are using the WindowSelectionChange event to monitor and control places in the template where we have custom bookmarks. If they click in a bookmark they get a popup dialog to control what
they cna enter in to that area of the document. There are receivers who open and edit the files for eventual release. Many of these documents, when opened by the receivers and clicked on in the specially created bookmark areas, throw an error "Compile
error in hidden module:ThisApplication. This error commonly occurs when code is incompatible with the version, platform or architecture of this application. Click 'Help' information on how to correct this error." The WindowSelectionChange event
is in the ThisApplication class of the templates. On opening or doing a New on a template on the share before opening one of these documents, we are able to get to the particular field though this error is thrown also in this case.
↧