A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

WordEditor property for Inspector null in Outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 27th 08, 03:46 PM posted to microsoft.public.outlook.program_addins
Philip Enny
external usenet poster
 
Posts: 5
Default WordEditor property for Inspector null in Outlook

I am writing an add in C# for Outlook 2007 that access the
ActiveInspector.WordEditor property in an event handler triggered by a
toolbar button. I have run across a situation where the WordEditor property
on the ActiveInspector is null. It so happens that the ActiveInspector is a
Contact, Mail, Task, or Calendar Inspector. Doesn't matter which Inspector.
I've checked the IsWordMail property which is true, but WordEditor is null.
This is only hapenning on one machine. Some additional information, I am not
accessing this object in the NewInspector event.

The code is:

_Document doc = (_Document)active_inspector.WordEditor;
Range range = doc.Application.Selection.Range;
object o = range; doc.Application.Selection.InlineShapes.AddPicture( path,
ref false_obj, ref true_obj, ref o);


doc in the above code snippet is null. Any feedback appreciated
Ads
  #2  
Old July 27th 08, 08:50 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default WordEditor property for Inspector null in Outlook

If it's only on one machine then it's specific to that machine obviously. I
haven't seen anything like that so far myself.

IsWordMail will always be true for Outlook 2007, so that's really a useless
flag for Outlook 2007.

Is Outlook the only 2007 version on that machine? Are the other Office
applications on that machine 2003 version? What about Word specifically on
that machine? Is it there, and if so what version?

No exceptions, only a null when instantiating doc? Do you get various other
properties from the ActiveInspector() if you instantiate an Inspector
object, or are they also null?

Usual questions like: what other addins? What happens if they're disabled?
Any synch software? What A-V, is it integrated with Outlook at all, any
changes if it's disabled?

--
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


"Philip Enny" wrote in message
...
I am writing an add in C# for Outlook 2007 that access the
ActiveInspector.WordEditor property in an event handler triggered by a
toolbar button. I have run across a situation where the WordEditor
property
on the ActiveInspector is null. It so happens that the ActiveInspector is
a
Contact, Mail, Task, or Calendar Inspector. Doesn't matter which
Inspector.
I've checked the IsWordMail property which is true, but WordEditor is
null.
This is only hapenning on one machine. Some additional information, I am
not
accessing this object in the NewInspector event.

The code is:

_Document doc = (_Document)active_inspector.WordEditor;
Range range = doc.Application.Selection.Range;
object o = range; doc.Application.Selection.InlineShapes.AddPicture( path,
ref false_obj, ref true_obj, ref o);


doc in the above code snippet is null. Any feedback appreciated


  #3  
Old July 28th 08, 10:17 PM posted to microsoft.public.outlook.program_addins
Philip Enny
external usenet poster
 
Posts: 5
Default WordEditor property for Inspector null in Outlook

Answers to the questions:

Is Outlook the only 2007 version on that machine?
All other office products are of version 2007 except Visio 2003 and a trail version of OneNote. We uninstalled Visio and OneNote. Problem still persists.


Are the other Office applications on that machine 2003 version?
No.


What about Word specifically on that machine? Is it there, and if so what
version?
Word 2007 is present on the machine. Office 2007 is installed with all standard install options.


No exceptions, only a null when instantiating doc?
All editors – word, html are null in the given code base on this particular machine.


Do you get various other properties from the ActiveInspector() if you
instantiate an Inspector object, or are they also null?
All other properties are set properly except word and html editor.


What other addins?
Three add-ins present Microsoft Exchange, Microsoft Active Sync and Microsoft Communicator present on this machine. They are not disabled.



What happens if they're disabled?
There was a Bluetooth based add-in on the machine but it has been disabled.


Any synch software?
Microsoft Active Sync is present on the machine.


What A-V, is it integrated with Outlook at all, any changes if it's disabled?
Symantec antivirus is present on the machine but its now disabled.


  #4  
Old July 29th 08, 02:37 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default WordEditor property for Inspector null in Outlook

Does the user notice anything odd about using their WordMail from a user
standpoint or do things look normal there?

I'd try disabling all other addins and seeing if that helps. If that doesn't
help then it's grasping at straws time. I'd run the Office Detect and
Repair, find and delete the WordMail template and run ScanPST on their PST
file if they're using one as their default delivery point. If all that fails
I'd try a new Outlook profile, not a copy of an existing profile.

--
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


"Philip Enny" wrote in message
...
Answers to the questions:

Is Outlook the only 2007 version on that machine?
All other office products are of version 2007 except Visio 2003 and a
trail version of OneNote. We uninstalled Visio and OneNote. Problem
still persists.


Are the other Office applications on that machine 2003 version?
No.


What about Word specifically on that machine? Is it there, and if so what
version?
Word 2007 is present on the machine. Office 2007 is installed with all
standard install options.


No exceptions, only a null when instantiating doc?
All editors – word, html are null in the given code base on this
particular machine.


Do you get various other properties from the ActiveInspector() if you
instantiate an Inspector object, or are they also null?
All other properties are set properly except word and html editor.


What other addins?
Three add-ins present Microsoft Exchange, Microsoft Active Sync and
Microsoft Communicator present on this machine. They are not disabled.



What happens if they're disabled?
There was a Bluetooth based add-in on the machine but it has been
disabled.


Any synch software?
Microsoft Active Sync is present on the machine.


What A-V, is it integrated with Outlook at all, any changes if it's
disabled?
Symantec antivirus is present on the machine but its now disabled.



  #5  
Old September 22nd 08, 03:18 AM posted to microsoft.public.outlook.program_addins
freedbill
external usenet poster
 
Posts: 8
Default WordEditor property for Inspector null in Outlook

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?

"Ken Slovak - [MVP - Outlook]" wrote:

Does the user notice anything odd about using their WordMail from a user
standpoint or do things look normal there?

I'd try disabling all other addins and seeing if that helps. If that doesn't
help then it's grasping at straws time. I'd run the Office Detect and
Repair, find and delete the WordMail template and run ScanPST on their PST
file if they're using one as their default delivery point. If all that fails
I'd try a new Outlook profile, not a copy of an existing profile.

--
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


"Philip Enny" wrote in message
...
Answers to the questions:

Is Outlook the only 2007 version on that machine?
All other office products are of version 2007 except Visio 2003 and a
trail version of OneNote. We uninstalled Visio and OneNote. Problem
still persists.


Are the other Office applications on that machine 2003 version?
No.


What about Word specifically on that machine? Is it there, and if so what
version?
Word 2007 is present on the machine. Office 2007 is installed with all
standard install options.


No exceptions, only a null when instantiating doc?
All editors – word, html are null in the given code base on this
particular machine.


Do you get various other properties from the ActiveInspector() if you
instantiate an Inspector object, or are they also null?
All other properties are set properly except word and html editor.


What other addins?
Three add-ins present Microsoft Exchange, Microsoft Active Sync and
Microsoft Communicator present on this machine. They are not disabled.



What happens if they're disabled?
There was a Bluetooth based add-in on the machine but it has been
disabled.


Any synch software?
Microsoft Active Sync is present on the machine.


What A-V, is it integrated with Outlook at all, any changes if it's
disabled?
Symantec antivirus is present on the machine but its now disabled.




  #6  
Old September 22nd 08, 01:50 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default WordEditor property for Inspector null in Outlook

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?


  #7  
Old September 22nd 08, 03:38 PM posted to microsoft.public.outlook.program_addins
freedbill
external usenet poster
 
Posts: 8
Default WordEditor property for Inspector null in Outlook

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?



  #8  
Old September 22nd 08, 09:04 PM posted to microsoft.public.outlook.program_addins
freedbill
external usenet poster
 
Posts: 8
Default 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?



  #9  
Old September 22nd 08, 11:45 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default WordEditor property for Inspector null in Outlook

Where is your code running? Is this a standalone program or an addin or
what?

--
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
...
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.


  #10  
Old September 23rd 08, 12:35 AM posted to microsoft.public.outlook.program_addins
freedbill
external usenet poster
 
Posts: 8
Default WordEditor property for Inspector null in Outlook

As I stated in the thread. It is a standalone program that accesses Outlook
via a class module. The snippit of code is from the class module.

"Ken Slovak - [MVP - Outlook]" wrote:

Where is your code running? Is this a standalone program or an addin or
what?

--
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
...
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.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inspector wrapper and Inspector close not fireing [email protected] Add-ins for Outlook 1 June 20th 08 01:53 PM
"Catastrophic Failure" setting Picture property of button in compose e-mail inspector in OL2003 Mark Smith Add-ins for Outlook 2 September 4th 07 02:25 PM
getting email address of To property in Outlook Inbox and From property in Outlook Outbox Omatase Outlook - General Queries 1 July 19th 07 01:04 PM
Winform over Wordeditor Steffen Grellmann Add-ins for Outlook 2 July 10th 07 08:13 PM
Help! Inspector.Close is fired before Inspector.Activate handler finishes Sergey Anchipolevsky Add-ins for Outlook 8 February 9th 06 09:51 AM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.