
September 22nd 08, 09:04 PM
posted to microsoft.public.outlook.program_addins
|
|
WordEditor property for Inspector null in Outlook
Forgot to mention that I have tried doing a repair to no avail. Thanks again
for your advice.
"freedbill" wrote:
Both Word and Outlook are from the same package. This is a new computer and
it has not had any other office product on it.
I posted the following new thread Sunday evening (9/21) in Outlook forms
(wrong spot). You suggestions are greatly appreciated.
I have a VB program that controls Outlook programatically. The program uses
a class (olwrapper) which inturn uses Outlook to send an email. A snippit of
olwrapper follows:
Dim objoutlook As Outlook.Application
Dim objoutlookmsg As MailItem
Dim objinsp as outlook.inspector
Dim mydoc as word.document
Set objoutlook = New Outlook.Application
Set objoutlookmsg = objoutlook.CreateItem(olMailItem)
Set objinsp = objoutlookmsg.GetInspector
If objinsp.IsWordMail = True Then
If objinsp.EditorType = olEditorWord Then
objinsp.Activate 'this was added for outlook
2007
set mydoc = objinsp.wordeditor
mydoc.range.paste 'inserts info from clipboard
end if
end if
This code has worked fine with Office 2003. I had to insert the
inspector.activate event and it has worked fine with outlook 2007, until one
of my customers recently had a problem. The are using MS Office 2007 Basic
Edition, and the .wordeditor property is not getting set. It is always empty.
I did some further testing and was able to determine that the code works
fine with office 2007 standard and small business, but it does not work with
basic edition.
I inadverently discovered that the code will run with basic edition, if I
start outlook before running the code.
Any help or suggestions is greatly appreciated.
"Ken Slovak - [MVP - Outlook]" wrote:
BCM has nothing to do with WordMail. Is the version of Word the same as the
version of Outlook and are both from the same Office package? You might want
to try a repair of the Office installation.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"freedbill" wrote in message
...
Hope this thread is still being monitored. I just added a new thread with
the identical situation. "problem with outlook 2007 wordeditor". I have
isolated the problem, I think, to Office 2007 Basic Edition (which
contains
basic Outlook without BCM). By any chance, was your problem machine
running
Office 2007 Basic Edition?
|