470,836 Members | 1,799 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,836 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
else - everything running OK!
Thanking you in anticipation
Maybe I need to use somewhere Aximp.exe???
internal class MatarotHost : AxHost
public MatarotHost() :
public static stdole.IPictureDisp ImageToIPicture(Image image)
{ //only with vs.net installed display this msg!!!
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 1139

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
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.