Add-In Express™ for Microsoft® Office and .Net Add-In Express for Office and .Net Add-In Express™ for Microsoft® Office and .Net
Total Page:16
File Type:pdf, Size:1020Kb
Add -in Express™ for Microsoft® Office and .net Add-in Express™ for Microsoft® Office and .net Add-in Express for Office and .net Add-in Express™ for Microsoft® Office and .net Developer's Guide Revised on 19-Nov-18 Copyright © Add-in Express Ltd. All rights reserved. Add-in Express, ADX Extensions, ADX Toolbar Controls, Afalina, AfalinaSoft and Afalina Software are trademarks or registered trademarks of Add-in Express Ltd. in the United States and/or other countries. Microsoft, Outlook, and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Borland and the Delphi logo are trademarks or registered trademarks of Borland Corporation in the United States and/or other countries. THIS SOFTWARE IS PROVIDED "AS IS" AND ADD-IN EXPRESS LTD. MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, ADD-IN EXPRESS LTD. MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD-PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS Add-in Express™ 2 www.add-in-express.com Add-in Express for Office and .net Table of Contents Table of Contents Add-in Express™ for Microsoft® Office and .net ................................ 1 Introduction ....................................................................................... 10 Why Add-in Express? ................................................................................................................ 11 Add-in Express and Office Extensions ...................................................................................................... 11 Add-in Express Products ........................................................................................................................... 12 System Requirements ................................................................................................................ 13 Host Applications ....................................................................................................................................... 13 Technical Support ...................................................................................................................... 14 Installing and Activating ............................................................................................................ 15 Activation Basics ....................................................................................................................................... 15 Setup Package Contents ........................................................................................................................... 16 Solving Installation Problems .................................................................................................................... 16 Redistributables ......................................................................................................................... 17 What's new in Add-in Express version 9 .................................................................................. 18 Getting Started .................................................................................. 19 Your First Microsoft Office COM Add-in ................................................................................... 20 A Bit of Theory ........................................................................................................................................... 20 Step #1 – Creating a COM Add-in Project ................................................................................................ 21 Step #2 – Add-in Module ........................................................................................................................... 25 Step #3 – Add-in Module Designer ........................................................................................................... 26 Step #4 – Creating a New Toolbar ............................................................................................................ 27 Step #5 – Creating a New Toolbar Button................................................................................................. 29 Step #6 – Accessing Host Application Objects ......................................................................................... 30 Step #7 - Customizing Main Menus .......................................................................................................... 31 Step #8 – Customizing Context Menus ..................................................................................................... 33 Step #9 – Handling Host Application Events ............................................................................................. 35 Step #10 – Handling Excel Worksheet Events .......................................................................................... 36 Step #11 – Customizing the Ribbon User Interface .................................................................................. 38 Step #12 – Creating Advanced Task Panes in Excel 2000-2019 ............................................................. 40 Step #13 – Creating Advanced Task Panes in PowerPoint 2000-2019 .................................................... 43 Step #14 – Creating Advanced Task Panes in Word 2000-2019 ............................................................. 46 Step #15 – Running the COM Add-in ........................................................................................................ 49 Step #16 – Debugging the COM Add-in .................................................................................................... 52 Step #17 – Deploying the COM Add-in ..................................................................................................... 53 What's next? .............................................................................................................................................. 53 Your First Microsoft Outlook COM Add-in ................................................................................ 54 A Bit of Theory ........................................................................................................................................... 54 Step #1 – Creating a COM Add-in Project ................................................................................................ 55 Step #2 – Add-in Module ........................................................................................................................... 59 Step #3 – Add-in Module Designer ........................................................................................................... 60 Step #4 – Creating a New Explorer Toolbar.............................................................................................. 62 Add-in Express™ 3 www.add-in-express.com Add-in Express for Office and .net Table of Contents Step #5 – Creating a New Toolbar Button................................................................................................. 63 Step #6 – Customizing the Outlook Ribbon UI .......................................................................................... 64 Step #7 – Creating a New Inspector Toolbar ............................................................................................ 65 Step #8 – Customizing Main Menu in Outlook 2000-2007 ........................................................................ 67 Step #9 – Customizing Outlook Context Menus ....................................................................................... 69 Step #10 – Creating an Advanced Outlook Region in Outlook 2000-2019 ............................................... 72 Step #11 – Accessing Outlook Objects ..................................................................................................... 75 Step #12 – Handling Outlook Events ........................................................................................................ 77 Step #13 – Handling Events of the Outlook Items Object ......................................................................... 78 Step #14 – Adding Property Pages to the Folder Properties Dialog ......................................................... 80 Step #15 – Intercepting Keyboard Shortcuts ............................................................................................ 83 Step #16 – Running the COM Add-in ........................................................................................................ 83 Step #17 – Debugging the COM Add-in .................................................................................................... 86 Step #18 – Deploying the COM Add-in ..................................................................................................... 87 What's next? .............................................................................................................................................. 87 Your First Excel RTD Server ...................................................................................................... 88 A Bit of Theory ........................................................................................................................................... 88 Step #1 – Creating an RTD Server Project ............................................................................................... 89 Step #2 – RTD Server Module .................................................................................................................