A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

About AxHost



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 30th 07, 07:57 PM posted to microsoft.public.outlook.program_addins
Yael
external usenet poster
 
Posts: 23
Default About AxHost

Outlook 2003.
in some computer I can see my add-in button bmp, and in one of this computer
I can't see my button add-in with no errors, but
nothing happens - I just not see this button.
Do you have any suggestion ?
This works on the majority of desktops less one computetr.

I think The problem is with this method:
When I'm remaring this method, and set button style add-in just cuption with
no icon, I can see add-in button.

public IPictureDisp GetIPictureDispOfPicture(Image image)
{
return (IPictureDisp)MatarotHost.GetIPictureDispFromPictu re(image);
}

And why I don't have this option in AxHost ?
AxHost.GetIPictureDispFromPicture(image);
I have only MatarotHost.GetIPictureDispFromPicture(image);

I tried all these:

// public static new stdole.IPictureDisp
GetIPictureDispFromPicture(System.Drawing.Image image)
// {
// return (stdole.IPictureDisp)MatarotHost.GetIPictureDispFr omPicture(image);
// }
// public IPictureDisp GetIPictureDispOfPicture(Image image)
// {
// return (IPictureDisp)MatarotHost.GetIPictureDispFromPictu re(image);
// }
// public static stdole.IPictureDisp ImageToIpicture(System.Drawing.Image
image)
// {
// return (stdole.IPictureDisp)MatarotHost.GetIPictureDispFr omPicture(image);
// }

Thank you.

"Dmitry Streblechenko" wrote:

Does not work as in "an exception is raised"? Or as in "no errors, but
nothing happens"?
Is it running on Outlook 2003 or higher? Outlook 2002 or below do not expose
the CommandBarBurton.Picture property.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Yael" wrote in message
...
Hi,
I have a problem, this code don't work in every computer:
I'm using this for display a bitmap in the add-in button:

public class MatarotHost : AxHost
{
public MatarotHost() : base( "02FD5840-C1A3-448E-8310-98611DF58281"){ }
public static stdole.IPictureDisp IPictureDisp(System.Drawing.Image Image)
{
return ((stdole.IPictureDisp)(AxHost.GetIPictureDispFromP icture(Image)));
}


this.toolbarBtn.Style = MsoButtonStyle.msoButtonIconAndCaption;
// set pic to this toolbarBtn
string ns = this.GetType().Namespace;
Assembly CurrentAssembly = this.GetType().Assembly;
System.IO.Stream imgStreamPic =
CurrentAssembly.GetManifestResourceStream(ns+"." + "matarotqm.bmp");
stdole.IPictureDisp Pic =
MatarotHost.IPictureDisp(Image.FromStream(imgStrea mPic));
this.toolbarBtnWeb.Picture = Pic;

Why it's not working on every computer???
Thank's,
Yael




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump


All times are GMT +1. The time now is 07:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.