![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |