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

Problems with toolbar in outlook when using word as editor



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 7th 06, 05:40 PM posted to microsoft.public.outlook
Marcin Junger
external usenet poster
 
Posts: 5
Default Problems with toolbar in outlook when using word as editor

Hello everyone,
I have problems creating toolbar in mail inspector. Everything works
fine when I don't use Word as mail editor; the toolbar is visible in all
inspectors, buttons are connected... When I use Word, everything is fine
with the first inspector, but when I open the second one (keeping the
1st open) I don't have my toolbar. I can click View-Toolbars and select
my toolbar, but it appeared that the buttons are not connected. More, I
have noticed that my toolbar is available in Word itself. Morover, if I
have Word open and then click in Outlook on a "New" button to create new
mail, my toolbar behaves exactly as if I had two mail inspectors open.
I create the toolbar in NewInspector event, I delete it in OnClose
event. The code that creates toolbar in OnNewInspector:
var
cbCRM : CommandBar;
idWordEditor : Word97._Document;
(...)
if Inspector.IsWordMail then begin
idWordEditor := IDispatch(Inspector.WordEditor) as _Document;
try
idWordEditor.Application.CustomizationContext := idWordEditor;
cbCRM :=
idWordEditor.CommandBars.Add('CRM',EmptyParam,Empt yParam,EmptyParam) as
CommandBar;
finally
idWordEditor := nil;
end;
end else begin
cbCRM :=
Inspector.CommandBars.Add('CRM',EmptyParam,EmptyPa ram,EmptyParam) as
CommandBar;
end;
cbCRM.Set_Position(msoBarTop);

Anyone has some experience in that field?
Marcin Junger, Sage Ireland
 




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
How can I use word template or use word as editor in Outlook calen Neil Outlook - Calandaring 1 August 2nd 06 05:54 PM
New message toolbar when Word is email editor jw Outlook - General Queries 1 June 6th 06 11:10 PM
Word as Outlook Editor Ridge Kennedy Outlook and VBA 2 April 21st 06 06:18 PM
Outlook ask permission to use Word as editor [email protected] Outlook - General Queries 3 April 12th 06 01:46 AM
Use 3rd Party Editor in Outlook not Word or Built in Editor Charles Outlook - Installation 1 March 28th 06 04:32 PM


All times are GMT +1. The time now is 01:14 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.