Você está na página 1de 5

Developing Smart Tags for Word, Excel, Outlook & PowerPoint in Delphi.

http://www.add-in-express.com/add-in-delphi/smart-tags.php

ADD-IN EXPRESS
COMPANY PRODUCTS SERVICES DOWNLOADS SUPPORT

SIGN IN | SITEMAP | ADVANCED SEARCH

search

FORUMS

LEARNING CENTER

BLOGS

PRODUCTS Add-in Express for Office and Delphi VCL Success stories Overview Version-neutrality Projects architecture Visual designers Components Outlook-specific features Outlook view and form regions Excel-related features Screencasts Requirements Feature matrix and prices Add-in Express for Office (.net and VCL) at a glance History ARTICLES Writing Office COM add-ins Programming Outlook plugins

How to create sm for Microsoft Word, Excel, Outlo

Add-in Express
for Microsoft Office and Delphi VCL

Add-in Express VCL and smart tags


With Add-in Express you can develop Smart Tags for Word, Excel, PowerPoint and Outlook default e-mail editor). The Add-in Express architecture makes possible to create seve project and one recognizer. So, you will not have to learn smart tag interfaces (ISma ISmartTagAction, etc.), just by following the eight steps below, you can develop, com Smart Tag DLL in about 20 minutes. The sample below describes creating a smart tag for Microsoft Word 2007 and Excel 200 Developer Guide, you will find one more smart tag example.

1. Create a smart tag library with Add-in Express wizard

In the Delphi IDE, close all opened projects, select the "File|New|Other:" item on the main me "Add-in Express Smart Tag" wizard on the "Add-in Express" tab of the "New Item" dialo name, the coclass name and the destination folder, click Next and then click Finish. The wizar project and opens it in the Delphi IDE.

In the wizard you can also specify if your smart tag should be installed with administrative or Creating smart tags Developing RTD servers New features for Office 2007 Developer's guide LATEST BLOG POSTS

2. Name your smart tag library


In the Project Manager window, select the Smart Tag module (MySmartTag1_IMPL.pas on t activate theObject Inspector, name your Smart Tag library via the SmartTagName proper appear in the AutoCorrect dialog box of host applications).

1 de 5

09/08/2013 09:57

Developing Smart Tags for Word, Excel, Outlook & PowerPoint in Delphi.

http://www.add-in-express.com/add-in-delphi/smart-tags.php

Office 2013 applications are supported by the new version of Add-in Express for Delphi VCL Upcoming Add-in Express releases Q&A

3. Add a new smart tag


In the Smart Tag module, select the Add-in Express tab on the Component Palette and a module.

4. Customize your smart tag


In Object Inspector, name the Smart Tag pop-up via the Caption property and specify t

2 de 5

09/08/2013 09:57

Developing Smart Tags for Word, Excel, Outlook & PowerPoint in Delphi.

http://www.add-in-express.com/add-in-delphi/smart-tags.php

5. Add recognizable phrases


To add words or phrases to be recognized by your Smart Tag, simply specify them in th collection.

6. Add new items to the smart tag pop-up


To add new items to the Smart Tag pop-up, populate the Actions collection. Every item associated with the corresponding pop-up item.

7. Handle the Click event of pop-up items


To handle the click event of a pop-up item, select the corresponding action object, a Object Inspector, double click on the OnClick event, and enter the code you need. For

procedure TSmartTagModule.adxSmartTag1Actions0Click(Sender: TObject; const AppName: WideString; const Target: IDispatch; const Text, Xml: WideString; LocaleID: Integer); begin if UpperCase(Text) = adxSmartTag1.RecognizedWords[0] then ShowMessage('Smart tags are strings of text that have type information atta them.'); if UpperCase(Text) = adxSmartTag1.RecognizedWords[1] then ShowMessage('Add-in Express VCL is the first visual tool for developing COM Smart Tags, RTD Servers, and Excel Automation Add-ins in Delphi.'); end;

8. Register and run your smart tag

Save the project, compile it, close Word and Excel, and register the Smart Tag library via "Run Server". Run Word or Excel and enter the phrases you specified as recognizable.

3 de 5

09/08/2013 09:57

Developing Smart Tags for Word, Excel, Outlook & PowerPoint in Delphi.

http://www.add-in-express.com/add-in-delphi/smart-tags.php

See also how to develop a smart tag in .NET.

See Also
Office addin development in Delphi Visual designer for Office Ribbon, toolbars Components for add-in menu, toolbar, ribbons Customizing Outlook: Navigation pane, To-Do bar Outlook view & form regions in Delphi

Creating Excel add-in with advanc Developing Office COM add-in in D Programming Outlook add-ins Developing Excel Real-Time Data s New features for Office 2010 - 200

Have any questions? Ask us right now!

Add-in Express Feedback

If you need quick assistance or want to your concerns, ideas or suggestions, pl to us using this form.

Products & technologies


Office add-ins in .net Office addins in Delphi VDProj to WiX Converter Advanced Outlook Regions for VSTO Outlook forms and views

Website
Links Blogs

Developer Guides

Add-in Express for Office an

Add-in Express for Office an Add-in Express for Internet Outlook Security Manager

Samples
HowTo samples for developers Sample add-ins for Excel, Word, Outlook

Ribbon Designer for SharePo 365

Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. All other

4 de 5

09/08/2013 09:57

Developing Smart Tags for Word, Excel, Outlook & PowerPoint in Delphi.

http://www.add-in-express.com/add-in-delphi/smart-tags.php

5 de 5

09/08/2013 09:57

Você também pode gostar