Open in New Window

Add-in Express™ Support Service
That's what is more important than anything else

Open in New Window
Using Open in New Window in Outlook 2002(xp) 
mnielsen@caelix.com




Posts: 12
Joined: 2004-08-13
I'm having some trouble using the Open in New Window right-click option in Outlook 2002 and 2003. When I have my Add-In with command bars etc. I get "invalid index" errors and then the window tries to open and eventually I get acess violations and have to restart outlook.

All I'm doing is clicking open in new window on the inbox folder. Other than this function everything seems to work just fine so I don't know what I'm doing wrong.

If I comment out all of my custom starup code and shutdown code then I still get the error.

Any suggestions.
Posted 13 Aug, 2004 15:24:19 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
We have just tested the situation you described and didn't find the "Invalid Index" error. Could you please send us the source code of your add-in or the source code of test add-in with the same error message.

Sincerely,
ADX Support Team
Posted 16 Aug, 2004 06:11:38 Top
mnielsen@caelix.com




Posts: 12
Joined: 2004-08-13
Attached is a test addin that has the same problem. There are comments in the code that shows part of the problem.

http://www.caelix.net/testaddin.zip

Just right click on any folder in Outlook and select
"open in new window".
Posted 16 Aug, 2004 16:18:45 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
I have just reproduced the error. I need some time to fix this but it will be fixed today. I will let you know about it and we will add this fix to the current build of ADX and will inform all our customers.

Thank you for this bug :-)

Sincerely,
ADX Support Team
Posted 17 Aug, 2004 02:57:14 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
It turned out to be much easier than it seemed. The Temporary property of the StandardCommandBar component was set to False and the Temporary properties of its Controls were set to True. To solve the problem you should unregister your add-in, run Outlook and remove your non-temporary command bar, change the Temporary property to True and register add-in anew.

We strongly recommend to use temporary command bars and controls if the host application is Outlook. As you can see yourself we have created special command bar components, namely TadxOLExplorerCommandBar and TadxOLInspectorCommandBar.

Sincerely,
ADX Support Team
Posted 17 Aug, 2004 06:11:33 Top
mnielsen@caelix.com




Posts: 12
Joined: 2004-08-13
Thank you. However if I use temporary command bars then the position of the bar is not stored by outlook and the user has to live with the default position that the bar uses. Is there a potential for a fix to this problem?
Posted 17 Aug, 2004 09:57:46 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Sure, you can store the position of temporary command bar before Outlook Explorer is closed and restore it when Outlook is started. See HOWTOs #17.

http://www.add-in-express.com/support/addin-delphi.php

Sincerely,
ADX Support Team
Posted 18 Aug, 2004 05:50:44 Top