473,834 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IPictureDisp in C#

I'm working on an add-in and one of the methods in the
extensibility model takes an object of type IPictureDisp.
How can i get this in .Net? I've tried loading up bitmap,
image and icon classes, and use those, but they dont
impelemt this interface.

has any one played with IPictureDisp in C#?
thanks,
John
Nov 15 '05 #1
1 6424
Hi John,

There are several solutions. One of them that worked for me just yesterday
is this:

http://groups.yahoo.com/group/vsnetaddin/message/306

You might have to sign up at Yahoo to read the message, but I hope this is
not too much overhead :-)

Note: If you also want transparency for a CommandBarButto n icon, you should
create a mask for the bitmap and obtain its IPictureDisp just the same way.

P.S. The microsoft.publi c.vsnet.ide newsgroup is more appropriate for
discussing add-in development-related issues.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"john" <jo**@john.co m> wrote in message
news:0e******** *************** *****@phx.gbl.. .
I'm working on an add-in and one of the methods in the
extensibility model takes an object of type IPictureDisp.
How can i get this in .Net? I've tried loading up bitmap,
image and icon classes, and use those, but they dont
impelemt this interface.

has any one played with IPictureDisp in C#?
thanks,
John


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1126
by: Frank Oquendo | last post by:
I'm developing an addin for an application. All interaction takes place via COM. I've had no luck trying to associate an icon with a UI element such as a button within the host application. So I did some searching and found instructions on how to derive from AxHost to expose the GetIPictureDispFromPicture method. Unfortunately, the image is incorrectly scaled and the colors seem inverted. I then switched to using GIF files. That solves...
0
2325
by: Shao | last post by:
I am using VS.Net 2003 and I need to create a IPictureDisp pointer that points to a picture object. IPictureDisp *pd; PICTDESC pdesc; memset(&pdesc,0,sizeof(pdesc)); pdesc.cbSizeofstruct = sizeof(pdesc); pdesc.picType = PICTYPE_BITMAP; pdesc.bmp.hbitmap = static_cast
2
6201
by: Map Reader | last post by:
Greetings, I am converting an old VB6 application to use .NET. One of the old controls loads icons from the disk and displays them. However, the transparent color turns to blue somewhere in the process. I narrowed it down to the conversion to IPictureDisp by first loading and saving the icon as a bitmap with no problems; and then repeating the process but adding the step of converting to an IPictureDisp as well. The first operation...
0
1899
by: Pedro Hurtado | last post by:
I am using (Microsoft Office Document Imaging 11.0 Type Library) and I have the following problem: The method (Microsoft Office Document Imaging 11.0 Type Library) of the interface IImage me an object type stdole.IPictureDisp, that i can transform to System.Drawing.Image with the static method System.Drawing.Image.FromHbitmap, when step the Picture property of the same form gives an error me of type exception
0
1534
by: =?Utf-8?B?WWFlbA==?= | last post by:
I have com a add-in for outlook 2003 in c# vs.net 2003. there I add this class for display icon in my add-in button: In some computer this add-in running currect, but in one computer this add-in not runing..I think it's something about this topic (AxHost). Do you have any suggestion ? This works on the majority of desktops less one computetr. I don't get error, I just not see my addin. public class MatarotHost : AxHost {
3
4427
by: =?Utf-8?B?WWFlbA==?= | last post by:
public class MatarotHost : AxHost { public MyHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ } public IPictureDisp GetIPictureDispOfPicture(Image image) { return (IPictureDisp)MyHost.GetIPictureDispFromPicture(image); } } Why I don't have in AxHost GetIPictureDispFromPicture method?
4
2150
by: =?Utf-8?B?WWFlbA==?= | last post by:
Hi, com add-in vs.net 2003 & outlook 2003 & c# I need to access to protected method of AxHost, How can I do this? I get nothing after the dot (base.), Why? This is my code: I need to set icon on commandBarButton: I need to get this: return(stdole.IPictureDisp)base.GetIPictureDispFromPicture(image); Thank you.
1
6222
by: =?Utf-8?B?WWFlbA==?= | last post by:
Hi, I have problem is with return stdole.IPictureDisp in this method if the computer don't have vs.net installed. 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
0
1856
by: =?Utf-8?B?WWFlbA==?= | last post by:
I created a com add-in for outlook 2003 in vs.net 2003 c#. My problem is with return type stdole.IPictureDisp. 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!
0
10509
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10219
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6954
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5626
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5793
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3977
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3081
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.