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

Outlook - Word Add-in problem !!!

0 views
Skip to first unread message

ammar

unread,
Aug 11, 2003, 6:57:41 AM8/11/03
to
Hi ALL,

We are automating our application from Outlook and Word, so that I
have 2 add-in's one for Outlook and the other in Word, so far every
thing is working fine, otherwise, In Outlook, when setting Word as a
default e-mail editor the outlook addin starts but is not
functioning!! and when then opening word, I find that the outlook
add-in is started in word instead of its word addin!!!
is there a way to let them function properly together, or should I
prevent our clients from setting the default Outlook editor to Word
which is not logic at all!

Please HELP!!

Regards all, and thanx in advance
Ammar

Ken Slovak - [MVP - Outlook]

unread,
Aug 11, 2003, 9:53:46 AM8/11/03
to
Look at the ItemsCB COM addin sample (Resources page at
www.microeye.com) for an example of a COM addin using 2 designers.

When you post in these groups giving answers is a lot easier if you
post your version of Outlook and maybe some sample code of what you
are doing. Otherwise it's all guesswork.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


"ammar" <ammar_...@hotmail.com> wrote in message
news:9b9a261b.03081...@posting.google.com...

ammar

unread,
Aug 12, 2003, 1:53:53 AM8/12/03
to
well, am using office xp for the development enviroment, and i tested
my work under office 2000 and is working fine too.
my problem is why the oulook add-in behaves in an unexpected way when
word is the default mail editor??? making a com add-in using 2
designer is not what am aiming to. the outlook and word addin's are 2
different modules and cannot be in the same add-in

Ken Slovak - [MVP - Outlook]

unread,
Aug 12, 2003, 11:01:55 AM8/12/03
to
Please post some of your code and also the preceding message in the
thread. Otherwise it's impossible to see what the thread's about.

Word as the editor has problems with Outloo before Outlook 2002 since
it doesn't open an Inspector. You will have to explain more what you
are trying to do, what you want it to do and what is actually
happening before anyone can help you.

Also, you always develop and compile on a machine running the oldest
version of Outlook that you want to support.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


"ammar" <ammar_...@hotmail.com> wrote in message
news:9b9a261b.03081...@posting.google.com...

ammar

unread,
Aug 13, 2003, 3:21:31 AM8/13/03
to
"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message news:<eNLYJKOY...@TK2MSFTNGP12.phx.gbl>...

Thanx for ur patience, well, it worked fine with me now!!
thanx again Ken

lloyd christopher

unread,
Aug 14, 2003, 1:07:49 AM8/14/03
to
Since Ammar has fixed his problem I'm goign to hijack this thread.

Also using Outlook 2002. What I am trying to do is create a CommandBar with
a single CommandBar button on a compose window, which does nothing more than
display a MsgBox (for testing anyways). I studied ItemsCB and copied the
explorer collection to make an inspector collection in the same fashion. My
CB/CBB displays fine when using both Outlook and Word as the editor. The
button does indeed create the message box in when using Outlook as the
editor. However:
1) In word when I click the button, i get the error "The macro cannot be
found or has been disabled because of your Macro security settings." I
suspect that its the former and that Word is getting the event (or rather
not getting the event), and its not suprising that would cause an error as
this isn't registered as a Word add-in. Outlook does get the event too and
does what it should.
2) the CB/CBB gets added to Microsoft Word as well, but again only if Word
is the editor.

Any advice on getting Microsoft Word to mind its own business? Should i be
looking into creating an empty Microsoft Word add-in to just do nothing?
This seems pretty ghetto and no idea how I could tell the difference between
an embedded outlook session and a real word session.

I can paste code, not sure what part would be helpful though.

Lloyd Christopher
SLOW30


"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message
news:eNLYJKOY...@TK2MSFTNGP12.phx.gbl...

Ken Slovak - [MVP - Outlook]

unread,
Aug 14, 2003, 10:11:45 AM8/14/03
to
Inside Word a toolbar button click must use Word code to do whatever
you want the button to do. You should test for the Word editor and not
create the button in Outlook code if Word is the editor. The code for
Word as the editor should be in something like an autostartup macro in
Word.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm

"lloyd christopher" <lloydSP...@slow30.com> wrote in message
news:FOE_a.722205$3C2.16...@news3.calgary.shaw.ca...

lloyd christopher

unread,
Aug 14, 2003, 12:30:24 PM8/14/03
to
i see, but does word expose an equivalent to the outlook options. truth be
told i want my button to do more than just display a dialog box, it needs to
edit the message headers, attachments bunch of things like that. how does
outlook communicate with word, on the mail open event I change the
MailItem.HTMLBody a bunch and word doesnt seem to mind that at all? thanks
for the help.

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

news:e7eoV$mYDHA...@TK2MSFTNGP12.phx.gbl...

Ken Slovak - [MVP - Outlook]

unread,
Aug 14, 2003, 3:37:37 PM8/14/03
to
Message headers you can never edit before a message is sent, they are
added by the mail server when the message is sent out. If you're using
Outlook 2002 and later you can still get the Outlook ActiveInspector
and then its CurrentItem to see attachments. In that case you might
have to mix Word and Outlook code. I don't really do much with
WordMail things so I can't help you there, but experiment and see what
you can do.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm

"lloyd christopher" <lloydSP...@slow30.com> wrote in message

news:AOO_a.756432$Vi5.17...@news1.calgary.shaw.ca...

0 new messages