Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Add-in loading (Word 2002)

    We're having a bit of trouble with a global template which includes toolbar customization, a few keybindings, and code that sets options under Tools|Options. We've used the template for a number of years with no problem, and we re-built it when the current problems started just to be sure it wasn't bloated or corrupt. This greatly reduced the occurence of the problem from 2 or 3 users a day to 1 a week.

    From time to time, the template appears to hang as it loads (a Status Line message displays and doesn't go away as it should). Word unloads the template (checkbox under Template & Add-Ins is unchecked), and is obviously unavailable. The next time Word starts, there is a message saying there was trouble with that template, and an offer to repair it. Once the template is opened and closed in Word, (no changes, no save), everything is fine. Apparently it was "flagged" as bad, and once Word opened it, it was apparently recognized as a valid template and the flag removed.

    This ALWAYS occurs when Word is not running and a document is double-clicked from Explorer, the DMS, or opened as an email attachment. I know that Word does not open a default document in this case, but my code adds a document if necessary to allow the Tools|Options settings to be applied.

    We have a lot going on as a document opens: the DocID is updated, a billing application begins timing how long the document is in use, and the document properties are set to firm standards. I'm also aware that some of the documents in question have been corrupt.

    I have two questions: 1. Any ideas what might be causing a perfectly bening template to hang like this? and 2. Where do COM Add-Ins fall in the loading order as Word starts? I know that normal.dot loads first, followed by Startup templates in reverse-alpha order. What about COM Add-Ins? Do they attach concurrently by any chance? My feeling is that this is a question of things colliding. As I mentioned we've used this template for 3 years with Word XP, and a similar template for a number of years with Word 97. We use iManage (DMS), Delta View, and a number of other applications which integrate with Word, some of which were added only recently.

    I also question whether Word is making an accurate assessment that this template is problematic. Whenever Word shuts down for some reason, there's always a template that's blamed. This seems almost random, but it's usually a template which contains custom toolbars or customized toolbars (as is the case here).

    Thanks,
    Richard Barrett

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Add-in loading (Word 2002)

    I can't solve those problems. But it makes me wonder whether one could write a tiny EXE (and associate it with all the Office file types) that would launch the application first and wait for it to complete its set-up procedures before instructing the application to open the desired document...

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Add-in loading (Word 2002)

    Interestingly, I use an EXE like this for a few very specific purposes. It launches Word with no startup templates, and then looks in the startup folder and loads each template that is found there... with a delay of x number of seconds (controlled via an INI file) between each one. I call GoToWord.exe, and it takes as a paramater either the name of a macro to be run or a template that a new document is to be based on. Most often, it's used in a Lotus Notes script to run a macro or template in Word. If Word isn't running, it follows the steps above.

    Our biggest problem now is choosing a document from iManage when Word isn't running. Some users have close to 20 global templates, so it's probably not surprising we have a bit of trouble now and then.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Add-in loading (Word 2002)

    That's a lot of templates. Perhaps you should rename the executable GoGetACupOfCoffee.exe. <img src=/S/wink.gif border=0 alt=wink width=15 height=15>

    Does iManage rely solely on the user's registry settings to launch Word from a DOC file, or does it store its own shell commands? I think you can see where I'm going with this question. Either way, you should have an opportunity to insert your executable into the process.

  5. #5
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Add-in loading (Word 2002)

    I really don't know how iManage launches Word, but the integration is very involved. iManage opens documents from its own database, and stores a host of information about who opened the document, whether it was edited or not, tracks printing (time, by whom, etc.). If you launch from iManage, I think there's no way to take over the process. It is possible to write code to get document lists from the iManage database and open them, but then it's necessary to have your code create the profile (which is stored locally for an open document) and write back a lot of iformation to the database, doing all the work that iManage would have done had it opened the document. It's really a wonderful application that works very well, but like with anything that co-exists with Office, there are stumbling blocks. I think our problem is just overload; most of the templates don't have AutoExecs that "do" anything.... just custom toolbars and that sort of thing. Some of them relate to products that integrate with Word as does iManage, so the integration with Word is registry based. Most of the PCs in question have 256 Mg of RAM, and I think that minimal amount doesn't give us optimal performance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •