msoaddin

所属分类:Pascal/Delphi编程
开发工具:Delphi
文件大小:2277KB
下载次数:84
上传日期:2009-07-23 08:38:10
上 传 者1485371
说明:  Delphi Office 嵌入式程序设计
(Delphi Office Embedded Programming)

文件列表:
msoaddin\delphifans.com.nfo (592, 2004-03-27)
msoaddin\EventSink.dcu (3219, 2008-03-18)
msoaddin\EventSink.pas (4666, 2003-01-20)
msoaddin\ExcelAddIn_IMPL.dcu (6914, 2008-03-18)
msoaddin\ExcelAddIn_IMPL.pas (7930, 2007-01-31)
msoaddin\Excel_TLB.dcu (775254, 2008-03-18)
msoaddin\Excel_TLB.pas (1198299, 2003-01-19)
msoaddin\Form_AddrInfo_U.dcu (3589, 2008-03-18)
msoaddin\Form_AddrInfo_U.ddp (51, 2007-01-30)
msoaddin\Form_AddrInfo_U.dfm (1438, 2007-01-30)
msoaddin\Form_AddrInfo_U.pas (1047, 2007-01-30)
msoaddin\MSOAddIn.cfg (400, 2007-01-30)
msoaddin\MSOAddIn.dll (491008, 2008-03-18)
msoaddin\MSOAddIn.dof (3605, 2007-01-30)
msoaddin\MSOAddIn.dpr (1138, 2003-01-21)
msoaddin\MSOAddIn.res (1796, 2003-01-22)
msoaddin\MSOAddIn.rsm (5217222, 2008-03-18)
msoaddin\MSOAddIn.tlb (2284, 2003-01-19)
msoaddin\MSOAddIn_Defs.dcu (1629, 2008-03-18)
msoaddin\MSOAddIn_Defs.pas (2317, 2007-01-30)
msoaddin\MSOAddIn_TLB.dcu (4473, 2008-03-18)
msoaddin\MSOAddIn_TLB.pas (8943, 2003-01-19)
msoaddin\MSOAddIn_Utils.dcu (1178, 2008-03-18)
msoaddin\MSOAddIn_Utils.pas (1924, 2003-01-20)
msoaddin\MSOEventSink.dcu (4192, 2008-03-18)
msoaddin\MSOEventSink.pas (5504, 2003-01-20)
msoaddin\MSOfficeAddIn.dcu (10655, 2008-03-18)
msoaddin\MSOfficeAddIn.pas (15560, 2003-01-22)
msoaddin\Office_TLB.dcu (168214, 2008-03-18)
msoaddin\Office_TLB.pas (262496, 2003-01-19)
msoaddin\OutlookAddIn.pas (209, 2002-10-14)
msoaddin\OutlookAddIn_IMPL.dcu (8343, 2008-03-18)
msoaddin\OutlookAddIn_IMPL.pas (8350, 2003-01-22)
msoaddin\Outlook_TLB.dcu (236972, 2008-03-18)
msoaddin\Outlook_TLB.pas (379240, 2002-10-14)
msoaddin\VBIDE_TLB.dcu (53072, 2008-03-18)
msoaddin\VBIDE_TLB.pas (92239, 2003-01-19)
msoaddin\WordAddIn_IMPL.dcu (8118, 2008-03-18)
msoaddin\WordAddIn_IMPL.pas (7733, 2003-01-22)
... ...

******************************************************************************** MS Office Delphi sample add-in README ******************************************************************************** 1) General MSOAddIn is skeleton implementation (and framework) of MS Office COM add-in. It provides implementation of required COM add-in functionality, and can be used as base for Office add-in development - all "grunt" tasks are handled by this implementation, you must only dig into Office application's object model to develop functionality you need. MSOAddIn enables user to create new contact in Outlook and insert contact info into Word or Excel documents as part of it's sample functionality. 2) Supported MS Office versions MS Office 2000 and MS Office XP supported. MSOAddIn is 3 add-ins: Outlook, Excel and Word addins. 3) Compilation Project has conditional define - 'DEBUG', which controls messages output into debug console using OutpuDebugString() function. You can alter this define in project options. MSOAddIn is Delphi 5 project, but you can compile it in Delphi 6-7 without problems. 4) Installation To install MSOAddIn register it either from IDE or using regsvr32.exe. Run Outlook, Excel or Word - you'll see new toolbar with button created by MSOAddIn. This method usefull when no user interaction required. Office applications offers COM add-in manager, which are not in application's menus by default. To insert COM add-in manager into application's menus perform following: - Open "Customize" options dialog ( 'Tools->Customize' from menus) - Go to "Commands" tab - From "Categories" list select "Tools" item - From "Commands" list locate "COM Add-ins..." command and drag it to desired position in menus. COM add-in manager used for installation (click "Add" button and locate MSOAddIn.dll to install it), removal and enabling/disabling. 5) Uninstallation To uninstall MSOAddIn unregister it either from IDE or using regsvr32.exe or remove it from application's COM add-in manager. 6) Known issues Command bars created by MSOAddIn are not removed from Office application when MSOAddIn removed via COM unregistration (unregistered from IDE or using regsvr32.exe), remove them manually. 7) Developing your add-ins MSOAddIn skeleton implementation is also a simple framework, which enables you to create your own add-in in few steps: - Start new ActiveX Library project - Add to project MSOAddIn's core units: EventSink.pas, MSOEventSink.pas, MSOfficeAddIn.pas and MSOAddIn_Utils.pas - Add object model import units for office application of your choice: Word_TLB.pas, Outlook_TLB.pas or Excel_TLB.pas (with addition of Office_TLB.pas and VBIDE_TLB.pas) or import them yourself from available Office type libraries (Project->Import Type Library) into project folder (or your preffered 'imports' folder). - Add new Automation Object to project - it will be your add-in. - Change Automation Object inheritance from TAutoObject to TMSOfficeAddIn - Replace class factory to TMSOAddInFactory in initialization clause of new Automation Object unit (see OutlookAddIn_IMPL.pas how to code it). - That's all, compile and register your add-in. Knowledge of Office Object model is worhty during Office add-ins development. You have resources on MSDN, but better approach - add VB help to your Office application installation - ok, it's in VBA, but covers all apects of development (better than MSDN). 8) Contact info Vadim Krochak vkrochak@bezeqint.net

近期下载者

相关文件


收藏者