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

word as editor of email messages

2 views
Skip to first unread message

Michael Kolechkin

unread,
Apr 10, 2001, 7:27:00 AM4/10/01
to
Hello.
I created add-in on VB.
It handles OnItemSend event, show my dialog form and
return Cancel parameter whether true or false.
When I use Outlook's internal message editor all is ok.
When I use Word I cannot show my dialog above Word window.
If I show it modal (VB code smth like 'myDialog.Show 1') it looks like
program hang (dialog is shown behind Word window)
and I had to use Alt-tab to select my dialog.
If I use functions 'ShowWindow' and 'SetForegroundWindow' from User32.dll I
can see blinking button of my dialod on task bar.
Both ways are not good but second of course is better.
What I do wrong? Is there other method to show my dialog above all windows?
Configuration: W2k, Outlook 2000.

Other thing that I cannot understand is that if I try to show my dialog as
non modal I get error message says smth like 'Cannot open non-modal dialog
while modal form is shown'. But I can switch between Word window and Outlook
without problems. I don't see any modal windows.
How Outlook works with word's control? It seems that their coordination
interface is not usual (straightforward).
Of course it is not important. I'd like to get help in problem described
first.

Thank you.
Michael.


Ken Slovak - [MVP - Outlook]

unread,
Apr 10, 2001, 9:25:30 AM4/10/01
to
You need to check what editor is being used and if WordMail is active
you have to use Word code to add your dialog.

--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
Appendices, Sams

"Michael Kolechkin" <mich...@mail.novosoft.ru> wrote in message
news:OxXmHFbwAHA.1864@tkmsftngp05...

Michael Kolechkin

unread,
Apr 11, 2001, 2:53:41 AM4/11/01
to
Ok. Thank you for response.
But I am not experienced Office Developer and didn't completely understand
what did you mean.
I can check editor. Could you tell me how I have to use Word code from my
addin? What kind of code: VBA or I have to create addin for Word and then
use it from my Outlook addin?
I didn't find information how I can open custom dialog from word using VBA
or Word object methods.

Thank you.
"Ken Slovak - [MVP - Outlook]" <kens...@worldnet.att.net> wrote in message
news:eP6T2HcwAHA.2228@tkmsftngp02...

Ken Slovak - [MVP - Outlook]

unread,
Apr 16, 2001, 11:20:05 AM4/16/01
to
You would create a Word template that your Outlook code would start
up. In that Word template you would create an autostart macro that
executes automatically when the template opens. The Word macro code to
display a dialog would be the same as the code you use in Outlook but
it would execute in Word. You can look at the programmatic methods
linked to at http://www.slipstick.com/contacts/startletter.htm and at
http://www.slipstick.com/dev/customprint.htm for examples of starting
Word and some Word code. For more Word coding information you are best
off posting in a Word programming group.

--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
Appendices, Sams

"Michael Kolechkin" <mich...@mail.novosoft.ru> wrote in message

news:OfK6$QlwAHA.1804@tkmsftngp02...

0 new messages