none
Word add-in run error RRS feed

  • Question

  • hi,

    A Problem has been encountered  when I run my add-in in word 2003.

    Start up word application and then load the add-in, it is OK, But has tow same add-in.

    Close and start up word again every time, the number of repeated add-in will be increase one.

    (only one add-in is valid, if delete the Normal.dat file, invalid add-ins will be removed).

    My project is coding on vs2008 C#. To add a command toolbar and cammand menubar, some commandbar button.

    Reference http://support2.microsoft.com/kb/302901/en-gb

    The diffrence is that the commandbar toolbar is custom, not built-in.

    Who can tell me why?

    Sincerely,
    Ye Qiu


    Wednesday, October 8, 2014 8:36 AM

Answers

  • Hello Ye,

    It looks like you add controls each time Word is started and don't remove them when Word is closed. You have the following options:

    1. Remove controls when Word is closed.

    2. Use temporary controls instead. See the Temporary parameter for the Add method of the CommandBarControls class.

    Wednesday, October 8, 2014 9:04 AM

All replies

  • Hello Ye,

    It looks like you add controls each time Word is started and don't remove them when Word is closed. You have the following options:

    1. Remove controls when Word is closed.

    2. Use temporary controls instead. See the Temporary parameter for the Add method of the CommandBarControls class.

    Wednesday, October 8, 2014 9:04 AM
  • Thanks Eugene. This problem has been resolved.

    Wednesday, October 15, 2014 9:58 AM