468,107 Members | 1,294 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,107 developers. It's quick & easy.

toolbarBtn.Picture = Pic;

I created a com add-in for outlook 2003 in vs.net 2003 c#.
if I calling
stdole.IPictureDisp Pic =
MatarotHost.ImageToIPicture(Image.FromStream(imgSt reamPic));
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.GetIPictureDispFromPic ture(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(imgSt reamPic));
this.toolbarBtnWeb.Picture = Pic;

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

Jun 5 '07 #1
0 1100

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Acer | last post: by
2 posts views Thread by H. Sommers | last post: by
10 posts views Thread by Anthony | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.