PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Aximp.exe

Reply

Aximp.exe

 
Thread Tools Rate Thread
Old 05-06-2007, 02:32 PM   #1
=?Utf-8?B?WWFlbA==?=
Guest
 
Posts: n/a
Default Aximp.exe


I created a com add-in for outlook 2003 in vs.net 2003 c#.
if I calling
stdole.IPictureDisp Pic =
MatarotHost.ImageToIPicture(Image.FromStream(imgStreamPic));
And I don't have a vs.net installed in a computer:
I don't get errors, but I can't see the button add-in
The add-in not arrive to this part of the code
OnStartupComplete()
else - everything running OK!
Thanking you in anticipation
Yael
Maybe I need to use somewhere Aximp.exe???
==================================
internal class MatarotHost : AxHost
{
public MatarotHost() :
base("02FD5840-C1A3-448E-8310-98611DF58281"){MessageBox.Show("base");}
public static stdole.IPictureDisp ImageToIPicture(Image image)
{ //only with vs.net installed display this msg!!!
MessageBox.Show("GetIPictureDispFromPicture");
return (stdole.IPictureDisp)AxHost.GetIPictureDispFromPicture(image);
}
}

string ns = this.GetType().Namespace;
Assembly CurrentAssembly = this.GetType().Assembly;
System.IO.Stream imgStreamPic =
CurrentAssembly.GetManifestResourceStream(ns+"." + "matarotqm.bmp");
//problem from this line!!!
stdole.IPictureDisp Pic =
MatarotHost.ImageToIPicture(Image.FromStream(imgStreamPic));
this.toolbarBtnWeb.Picture = Pic;

==================================

  Reply With Quote
Old 06-06-2007, 08:40 AM   #2
=?Utf-8?B?WWFlbA==?=
Guest
 
Posts: n/a
Default RE: Aximp.exe

the problem is with return stdole.IPictureDisp in this method if the computer
don't have vs.net installed.

"Yael" wrote:

> I created a com add-in for outlook 2003 in vs.net 2003 c#.
> if I calling
> stdole.IPictureDisp Pic =
> MatarotHost.ImageToIPicture(Image.FromStream(imgStreamPic));
> And I don't have a vs.net installed in a computer:
> I don't get errors, but I can't see the button add-in
> The add-in not arrive to this part of the code
> OnStartupComplete()
> else - everything running OK!
> Thanking you in anticipation
> Yael
> Maybe I need to use somewhere Aximp.exe???
> ==================================
> internal class MatarotHost : AxHost
> {
> public MatarotHost() :
> base("02FD5840-C1A3-448E-8310-98611DF58281"){MessageBox.Show("base");}
> public static stdole.IPictureDisp ImageToIPicture(Image image)
> { //only with vs.net installed display this msg!!!
> MessageBox.Show("GetIPictureDispFromPicture");
> return (stdole.IPictureDisp)AxHost.GetIPictureDispFromPicture(image);
> }
> }
>
> string ns = this.GetType().Namespace;
> Assembly CurrentAssembly = this.GetType().Assembly;
> System.IO.Stream imgStreamPic =
> CurrentAssembly.GetManifestResourceStream(ns+"." + "matarotqm.bmp");
> //problem from this line!!!
> stdole.IPictureDisp Pic =
> MatarotHost.ImageToIPicture(Image.FromStream(imgStreamPic));
> this.toolbarBtnWeb.Picture = Pic;
>
> ==================================
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off