![]() |
| 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. |
|
|||||||
| Tags: 2007, addin, com, outlook |
|
|
|
Thread Tools | Display Modes |
|
#11
|
|||
|
|||
|
Thanks Ken.
"Ken Slovak - [MVP - Outlook]" wrote: You check that in the ribbon callback, such as in onAction. -- 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 "goran" wrote in message ... Thanks Ken. And where should I check this if (control.context=wrapper(i).inspector? In the connection module or in inspector wrapper class? |
| Ads |
|
#12
|
|||
|
|||
|
And if I want to use Office 12 library and I have Outlook 2007 installed, are
there ways to get currently selected dropdown text and index like it used in Office 11? "Ken Slovak - [MVP - Outlook]" wrote: Unfortunately that's not exposed. Dennis's tlb doesn't expose some ribbon-related methods in the Office 12 library such as ExecuteMso(idMSO) or GetEnabledMso(idMSO), but there isn't a method for reading either of those combo properties. You have to track the state of any property you want to evaluate yourself. When the combo's onChange() callback fires you would update your property variables. The second of those articles I referenced has a complete list of all combo callbacks. -- 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 "goran" wrote in message ... I can create xml dynamically. But how can I reference combobox in the code once it is populated? For example, when I click on the button next to combobox I want to get the currently selected index and selected text. Do I refer to it by id that I specified in the xml? Thanks, Goran |
|
#13
|
|||
|
|||
|
There isn't a method for reading either of those combo properties, no matter
what reference or library you use. The ribbon designers didn't think we'd need things like that. -- 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 "goran" wrote in message ... And if I want to use Office 12 library and I have Outlook 2007 installed, are there ways to get currently selected dropdown text and index like it used in Office 11? |
|
#14
|
|||
|
|||
|
Thanks.
"Ken Slovak - [MVP - Outlook]" wrote: There isn't a method for reading either of those combo properties, no matter what reference or library you use. The ribbon designers didn't think we'd need things like that. -- 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 "goran" wrote in message ... And if I want to use Office 12 library and I have Outlook 2007 installed, are there ways to get currently selected dropdown text and index like it used in Office 11? |
|
#15
|
|||
|
|||
|
Hi Ken,
Could you tell me where I can get hold of the XLIRibbonExtensibility tlb? - I can't find it anywhere ![]() Many thanks, Rob Holmes. podia. "Ken Slovak - [MVP - Outlook]" wrote: What you have to do is check for versioning of the running Outlook and if the major value is "12" you know it's Outlook 2007. Then you fork your code to handle the ribbon in that case instead of creating the CommandBars UI you would use for Outlook 2003 and earlier ("11" or less). The easiest way to do that in VB6 code is to download Dennis Wallentin's (XL-Dennis) XLIRibbonExtensibility tlb from his Web site and reference that everywhere you want to use Ribbon extensibility. That lets you handle the callbacks from the ribbon and to supply your custom XML for your Ribbon UI. An alternative is to put the Office 2007 MSO file on your dev system and reference that for the ribbon stuff, the CLSID's are compatible so your code will still run under earlier versions of Office. There's no conversion from VB6 to .NET code, except manually. You can start a VSTO Outlook 2007 project and cut and paste your VB6 code in and then hand translate it into VB.NET code. You have to take into account changes such as changing all of your VB6 Long variables into VB.NET Int's and so on. That's what I did to get my own templates and library code into VB.NET from VB6, and I did the same translating the VB6 into C# for my C# templates. The problem with VSTO is that if you develop for Outlook 2007 that's the only version it will run on. If you develop for Outlook 2003 it will run on Outlook 2007 but with no ribbon support. Since the shim is pre-compiled for VSTO that means that Dennis's method doesn't work well with VSTO in deployment, although the code works. For multi-version support in managed code I use shared addins and a hack of the custom shims provided for the Outlook team's sample addins that I modified to support Outlook 2003 with shimmed ribbon support. -- 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 "goran" wrote in message ... Hi All, I have a working Outlook 2003 COM add-in written in VB 6.0 based on Ken's ItemsCB template with Inspector wrapper class. It adds custom toolbar with few buttons and dropdown on the Inspector window. It works in Outlook 2007, but it is located under 'Add-ins' tab. What should I change so it will show up on the 'Message' tab instead, and use existing code in button_click event. Also what would be the easiest way to convert this to VSTO add-in for Outlook 2007 so I don't have to change much. Thanks, Goran |
|
#16
|
|||
|
|||
|
http://xldennis.wordpress.com/2006/1...h-com-add-ins/
-- 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 "Rob Holmes" wrote in message ... Hi Ken, Could you tell me where I can get hold of the XLIRibbonExtensibility tlb? - I can't find it anywhere ![]() Many thanks, Rob Holmes. podia. |
|
#17
|
|||
|
|||
|
Many thanks, Ken
![]() "Ken Slovak - [MVP - Outlook]" wrote: http://xldennis.wordpress.com/2006/1...h-com-add-ins/ -- 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 "Rob Holmes" wrote in message ... Hi Ken, Could you tell me where I can get hold of the XLIRibbonExtensibility tlb? - I can't find it anywhere ![]() Many thanks, Rob Holmes. podia. |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting Up an Outlook 2007 with an Exchange Server 2007 E-mailAddress | Scott Christopher | Outlook - Installation | 0 | March 3rd 08 10:08 PM |
| Any planned improvements for Word HTML rendering engine in Office 2007 SP2? ...for Outlook 2007 | anthonyx26 | Outlook - General Queries | 2 | January 18th 08 12:44 AM |
| Outlook 2007 shared calendars are lost when exchange 2007 reboot | Cris Krikkke | Outlook - Calandaring | 2 | December 14th 07 07:25 AM |
| Office Standard 2007 Trial & Outlook 2007 full version | cmmsc777 | Outlook - Installation | 3 | November 7th 07 09:10 PM |
| Outlook 2007 will not open SharePoint 2007 task assignment messages | ACK | Outlook - General Queries | 3 | February 16th 07 02:15 AM |