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 » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2007 wordeditor Issue



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 21st 08, 11:16 PM posted to microsoft.public.outlook.program_forms
freedbill
external usenet poster
 
Posts: 8
Default Outlook 2007 wordeditor Issue

I have a VB program that controls Outlook programatically. The program uses
a class (olwrapper) which in turn 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.
Ads
  #2  
Old September 23rd 08, 03:24 AM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default Outlook 2007 wordeditor Issue

In article ,
=?Utf-8?B?ZnJlZWRiaWxs?= wrote:
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.

Have your program create the Outlook Object when it starts. I suspect that
you can keep it invisible, or at least, minimized.

--
Hollis Paul
Mukilteo, WA USA


  #3  
Old September 23rd 08, 02:20 PM posted to microsoft.public.outlook.program_forms
freedbill
external usenet poster
 
Posts: 8
Default Outlook 2007 wordeditor Issue

Thanks, however, my program is creating the Outlook object when it starts.
The unique problem I have is that this program runs fine on several
computers. But it fails on a new computer and the only thing I can identfy
as different is that the new computer is running MS Office Basic Edition.
The problematic computer will run the program okay only if I manually start
Outlook before running the program.

"Hollis Paul" wrote:

In article ,
=?Utf-8?B?ZnJlZWRiaWxs?= wrote:
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.

Have your program create the Outlook Object when it starts. I suspect that
you can keep it invisible, or at least, minimized.

--
Hollis Paul
Mukilteo, WA USA



  #4  
Old September 24th 08, 06:43 AM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default Outlook 2007 wordeditor Issue

In article ,
=?Utf-8?B?ZnJlZWRiaWxs?= wrote:
The problematic computer will run the program okay only if I manually start
Outlook before running the program.

Then the next best thing is to start Outlook, again in minimized form, during
the boot sequence. I don't exactly know how to do that, but if you have a
boot up script, you can use a command line switch. If you are willing to have
it visible, you just need to put a link in the appropriate start-up folder.
Then it is there when you need it.

--
Hollis Paul
Mukilteo, WA USA


 




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
WordEditor property for Inspector null in Outlook Philip Enny Add-ins for Outlook 14 September 24th 08 05:14 PM
Outlook 2007 issue on Windows Vista - Exchange connection issue NA[_2_] Outlook - Installation 5 September 3rd 08 08:28 AM
Winform over Wordeditor Steffen Grellmann Add-ins for Outlook 2 July 10th 07 09:13 PM
WordEditor Modify HTMLBODY Formatting lost krish Add-ins for Outlook 3 July 10th 07 04:06 PM
Strange WordEditor Problem rdrtkd Outlook and VBA 0 June 15th 06 03:41 AM


All times are GMT +1. The time now is 09:02 PM.


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.