Word as e-mail editor

B

blueturtle

Hi,

I've seen this issue discussed here often, but I still need some
clarifiactions.

I have created an Outlook AddIn ( C# ).
It was created using Outlook 2000 Object Model, but currently I test it
on Outlook 2003, and Word 2003.

The problem I encounter:
If the email editor is set as Word, the AddIn's main window seems to be
hang - white and busy (sand clock) cursor ( When obsreved from "spy" ,
instead pf "ClassName" as class, and "Outlook" as process, it shows
"Ghost" and "Explorer" ).

These are urls in this group:

From:

http://groups.google.com/group/micr...0c7f034b5/f0792a605bea6cd5?q=word+hang&rnum=1

I understood, that I can should check the "IsWordMail", and open a word
template that will do the same job,

but here:

http://groups.google.com/group/micr...791fa5a632f/609591cb3e887815#609591cb3e887815

it says that:
"You can't get an autoexec macro or on startup macro to run if Word is
being
opened as the Outlook editor for emails."

I know how to:
Check "IsWordMail", and open a word template which runs a macro on
startup.
It worked also when I opened the template from Word, but I'm not sure
this is what is required.

I dont know\understand:
What is the the solution for my problem ?
What code should the macro in the template invkoe ? ( Do I need to
seperate the parts of Outlook AddIn, so Word will execute them ? )
Should I create a different AddIn for the Word ?

Thanks for any help.
Is.
 
B

blueturtle

Hi,

Can someone give me a hint which direction to go ?

Is it so simple to work with Word as email editor, that my question was
stupid,
or is it so uncommon, that no one encountered these problems ?

Thanks for any help,
Si.
 
K

Ken Slovak - [MVP - Outlook]

Probably no one answered you because there are at least 3 recent threads in
this group alone about problems and workarounds when using WordMail. More
threads on this have been posted recently too, but at least 3 have been
within the last month or so. Scan the newsgroup and take a look at those
threads.
 
B

blueturtle

Hi,

Thanks for your reply.
However, I'm still missing some parts that I couldn't find in any other
threads.
I'd appreciate any help.

I use C#.
I have a command button on mail inspector.
In the click event of the command button, I open a new non-modal form,
and retrieve infromation from mail, and put it in a DB.
When the inspector is WordMail, the form is "hung". otherwise ok.
I tested it on the microeye sample (ItemsCB) (by adding the missing
parts), and there I encounter different behavior:
In the microeye sample, the form is ok (unlike when using .Net) , but
with error: "The macro cannot be.."

This behavior is mentioned here:
http://groups.google.com/group/micr...4afb1683?q=lloyd&rnum=3&#doc_829bd79889597447

In the listed above thread, you suggest : "The code for Word as the
editor should be in something like an autostartup macro in Word.",
and later : "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."

So I'm trying to figure out what to do in this case:
How do I mix the code, so if it is executed in Word (if I will know how
to do) ?

The fact that the form works ok in my revised ItemsCB, and not in .Net
doesn't help much.
I see in the task manager that .Net Domain is in the Outlook process,
and not the Winword process (as expected).
But if I know what is the proper way to do it without .Net, I will try
to apply it on .Net.

Any help is appreciated
Si.
 
K

Ken Slovak - [MVP - Outlook]

I never use .NET languages for Outlook so I can't help with specific
problems related to C# code. Since the code from MicroEye works correctly
you would have to ensure that your conversion into C# code is accurate and I
can't help with that at all.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top