Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pasting Icon In Mail Inspector

26 views
Skip to first unread message

haider

unread,
Aug 30, 2006, 8:14:53 AM8/30/06
to
Hello.
I am using vb.net 2003. i am developing a AddIn Application for outlook
express 2003.
I changed a Icon to Outlook Explorer Command bar with ".Picture" And ".Mask"
Property
it changed succuess fully. but when i going to change mail inspector icons
the icon changed with ".Pasteface" Command but its background still bule i
mean it is not converted to transparent.
Please any body inform me its solution that how can i changed icon with
Transparent effect.
Thanks.

I am very thankfull for all.
Best Regards.
Haider.


Ken Slovak - [MVP - Outlook]

unread,
Aug 30, 2006, 8:52:30 AM8/30/06
to
Use the Picture and Mask properties just as you did with the Explorer
buttons. It's the same thing whether it's an Explorer or Inspector.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"haider" <hai...@comsdev.com.pk> wrote in message
news:uyFV2yCz...@TK2MSFTNGP05.phx.gbl...

haider

unread,
Aug 31, 2006, 1:18:56 AM8/31/06
to
Dear Sir Ken Slovak.
As you replied i did but the problem is still there .Picture and .Mask
Properties didnt work in Mail Inspector but Work fine in Explorer.
Please tell me anyother solution.
Thanks.
Best Regards.
Haider.

"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message
news:%232VZmOD...@TK2MSFTNGP04.phx.gbl...

Ken Slovak - [MVP - Outlook]

unread,
Aug 31, 2006, 9:06:44 AM8/31/06
to
There is no other solution. It's either Picture and Mask or PasteFace.

I've used Picture and Mask with Inspectors for years without problems, as
long as the target is Outlook 2002 and later. Those properties don't exist
for Inspectors (or Explorers) in earlier versions of Office products.

What error are you getting? Are you getting a valid object for your
Inspector and its CommandBars collection?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"haider" <hai...@comsdev.com.pk> wrote in message

news:efh$AAMzGH...@TK2MSFTNGP02.phx.gbl...

Dmitry Streblechenko

unread,
Aug 31, 2006, 1:24:10 PM8/31/06
to
Picture and Mask properties won't work for the Word inspectors since it
lives in the word.exe address space

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

"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message

news:eztbT8Pz...@TK2MSFTNGP05.phx.gbl...

Ken Slovak - [MVP - Outlook]

unread,
Aug 31, 2006, 3:46:50 PM8/31/06
to
So for those PasteFace would have to be used, with the workaround for
masking detailed in the KB.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message
news:e5qpQHSz...@TK2MSFTNGP04.phx.gbl...

haider

unread,
Sep 1, 2006, 2:10:19 AM9/1/06
to
Dear Sir,
Thanks for your kind reply.
Acutally I am using Vb.Net2003 and Build AddIn for Outlook 2003.The problem
is that when i used these properties for explorer its works fine but when i
used these for Mail inspector then the icons didnt show, Only caption show
but icon didnt i apply my setup for different computers but it didnt work .
A very important thing is this when i search it on net espacially
"www.Google.com" then i received an article of Mr.Amit from the following
Link
"http://www.c-sharpcorner.com/UploadFile/amit_agrl/AddingPictureToButtonOnOutLookCommandBar.doc08242005065744AM/AddingPictureToButtonOnOutLookCommandBar.doc.aspx?ArticleID=cd482428-0d39-4a7a-957a-2b57677c1e79"
he also admitted that the .Picture and .Mask properties Works only on
Explorer but didnt with Inspectors. so he describe about .Pasteface function
in which clipboard involve, but he didnt describe that how to make it
Transparent becuase it show blue background.
Sir, now i breifly define all about my problem so, please i request you to
check it and tell me any solution for this.

Thanks.
Best Regards.

Haider.

"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message

news:eztbT8Pz...@TK2MSFTNGP05.phx.gbl...

Ken Slovak - [MVP - Outlook]

unread,
Sep 1, 2006, 1:19:07 PM9/1/06
to
I'm not downloading any files.

Look in the KB for information about using PasteFace with masking for
transparency. Another thing to consider is that in .NET code you're crossing
process boundaries between COM applications and your .NET code. Mask and
Picture use IPictureDisp and that can't cross process boundaries. WordMail
is Word subclassed by Outlook and so the process boundaries are being
crossed.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"haider" <hai...@comsdev.com.pk> wrote in message

news:OdB3DDez...@TK2MSFTNGP05.phx.gbl...

Pieter

unread,
Oct 5, 2006, 5:25:33 AM10/5/06
to
Hi,

I'm having the same problem with an Outlook Add In (VB.NET 2005, Office 2003
SP2).

It worked fine using the Picture and Mask method, until one of my clients
decided to use Word as his email-editor.
So now i am trying to implement the Pastface method
(http://support.microsoft.com/kb/288771/en-us), but the code is VB 6, not
.NET, so it doesn't work, hehe :-)

I'm having troubles with VB6 constants like:
- vbPicTypeBitmap
- vbCFDIB
- vbWhite
- vbSrcCopy
and some functions.

Does anybody has the code converted to VB.NET? Or how should I migrate these
constants and the functions?

Thanks a lot in advance,

Pieter


0 new messages