is not loading as a COM ADD-IN in outlook 2003

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

is not loading as a COM ADD-IN in outlook 2003
 
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
lovely that fix it

thanks a lot

just one more thing

how to i create a Splash Screen?? So that when my COM Add-in load up it is display?
Posted 23 Jun, 2005 06:26:27 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
Jonathan Dorling wrote:
how to i create a Splash Screen?? So that when my COM Add-in load up it is display?

Hi Jonathan,
I've used the two events AddinInitialize and AddinStartupComplete.

When AddinInitialize is called I display my Splashscreen (a Dialog wich is shown nonmodal) which is closed when AddinStartupComplete is called.
Best regards,

Sven Heitmann
Posted 23 Jun, 2005 06:46:38 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
sound nice can you send me an example please
Posted 23 Jun, 2005 06:51:50 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
The Splashscreen I am using is based on this one
http://www.codeproject.com/csharp/PrettyGoodSplashScreen.asp

add the required files to you project and call him like this
note that the Splashscreen is only shown on first startup


private isUninstall = false;

private void WordAddin_AddinInitialize(object sender, EventArgs e) {
  if (StartMode == AddinExpress.MSO.ADXStartMode.smFirstStart) {
    SplashScreen.ShowForm();
  } else if (StartMode == AddinExpress.MSO.ADXStartMode.smUninstall) {
    isUninstall = true;
  }
}

private void WordAddin_AddinStartupComplete(object sender, EventArgs e) {
  if(!isUninstall) {
    SplashScreen.CloseForm();
  }
}


to show on each startup use


private void WordAddin_AddinInitialize(object sender, EventArgs e) {
  if (StartMode == AddinExpress.MSO.ADXStartMode.smUninstall) {
    isUninstall = true;
  } else {
    SplashScreen.ShowForm();
  }
}
Best regards,

Sven Heitmann
Posted 23 Jun, 2005 07:09:45 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
use the code below

Private splash As Splash_
...
Private Sub AddinModule_AddinInitialize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.AddinInitialize
splash = New Splash_
splash.Show()
End Sub

Private Sub AddinModule_AddinStartupComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.AddinStartupComplete
splash.Close()
End Sub

As to the example, we develop fully functional examples for premium subscribers only.
Posted 23 Jun, 2005 07:10:26 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
i am on Professional and it said Examples, patches, fixes and features on request??

also can you put text and progress Bar in the status bar?
Posted 23 Jun, 2005 07:15:13 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
No, it is not possible.
Posted 23 Jun, 2005 07:20:24 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
i see other COM ADD-IN in side outlook do this but i don't know if they are made with your app

what about the other question

i am on Professional and it said Examples, patches, fixes and features on request??
Posted 23 Jun, 2005 07:22:27 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
Jonathan Dorling wrote:
also can you put text and progress Bar in the status bar?

I don't know who you mean with this question.
To put Text into the Bar on my Splashscreen use

SplashScreen.SetStatus("Some Text");


For example I add an event to the ADXAddinModule wich is fired each time a CommandBar is loaded.

private void WordAddin_OnCommandBarLoad(object sender, EventArgs e) {
  string name = (sender as AddinExpress.MSO.ADXCommandBar).CommandBarName; 
  SplashScreen.SetStatus("Loading ""+name+""",false);
}
Best regards,

Sven Heitmann
Posted 23 Jun, 2005 07:24:37 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
the question was aim at Aleksey Zhigar if you read up
Posted 23 Jun, 2005 07:27:38 Top