Office アドインプラットフォームを使用すると、Office アプリケーションを拡張し、コンテンツと対話するソリューションを構築できます。HTML、CSS、JavaScriptを使用して、Outlook、Excel、Word、PowerPoint、OneNote、Projectで相互作用できます。アドインはWindows、Mac、iPad、ブラウザで動作し、豊富なインタラクティブコンテンツを埋め込むことが可能です。VBA、COM、VSTOに比べ、クロスプラットフォームのサポートや集中管理、AppSourceを通じた簡単な配布が特徴です。また、Office JavaScript APIを使用して、Office コンテンツと連携できます。
Office アドインプラットフォームの紹介
Office アドインプラットフォームを使用すると、Office アプリケーションを拡張し、Office ドキュメント内のコンテンツと対話するソリューションを構築できます。Office アドインを利用することで、HTML、CSS、JavaScript といった親しみやすいウェブ技術を使用して、Outlook、Excel、Word、PowerPoint、OneNote、Project を拡張および対話させることが可能です。これらのソリューションは、Windows、Mac、iPad、そしてブラウザを含む複数のプラットフォームで実行できます。
Office アドインの利点
Office アドインは、ブラウザ内のウェブページが出来るほとんどの事を行うことができます。Office アドインプラットフォームを利用することで、次のことが可能です:
新しい機能の追加
- 外部データを Office に取り込み、Office ドキュメントを自動化し、他の Microsoft 機能を Office クライアント内で利用可能にするなど、新しい機能を追加できます。たとえば、Microsoft Graph API を使用して、生産性を向上させるデータに接続できます。
インタラクティブなオブジェクトの作成
- 地図やチャート、インタラクティブなビジュアライゼーションを埋め込むことができ、ユーザーは自身の Excel スプレッドシートや PowerPoint プレゼンテーションに追加できます。
Office アドインの構成要素
Office アドインは、2 つの基本的な構成要素から成り立っています:マニフェストファイルと独自のウェブアプリケーションです。
マニフェスト
マニフェストは、アドインの設定や機能を明記します。具体的には次のような情報が含まれます:
- アドインの表示名、説明、ID、バージョン、およびデフォルトのロケール
- アドインが Office とどのように統合されるか
- アドインの権限レベルとデータアクセス要件
ウェブアプリ
最も基本的な Office アドインは、Office アプリケーション内で表示される静的な HTML ページで構成されますが、Office ドキュメントや他のインターネットリソースと相互作用しない場合があります。Office ドキュメントと相互作用させるためには、ホスティングプロバイダーがサポートする任意の技術(例:ASP.NET、PHP、Node.jsなど)を使用できます。Office クライアントやドキュメントと相互作用するには、Office.js JavaScript API を使用します。
Office クライアントの機能を拡張・対話させる
Office アドインは、Office クライアントアプリケーション内で様々な機能を提供します:
Office の機能を拡張
アドイン マニフェストで指定されたカスタム UI やタスクペインを使用して、Office アプリケーションに新しい機能を追加できます。
カスタムボタンとメニューコマンド
Office 上でカスタムリボンボタンやメニューアイテムを追加することができ、Office アプリケーションから直接アドインにアクセスすることが可能になります。これにより、特定のアクションを実行することができます。
タスクペイン
タスクペインは、ユーザーがソリューションと対話できるようにするために利用されます。カスタムボタンには対応しないクライアント(iPad の Office)では、アドインはタスクペインとして実行されます。Excel、Word、PowerPoint では、ユーザーは「ホーム」 > 「アドイン」ボタンからタスクペインアドインを起動します。
Outlook の機能を拡張
ユーザーは、メールの表示、返信、作成、会議のリクエストやレスポンス、キャンセルなどの際に Outlook アドインを実行できます。Outlook アドインは以下のことが可能です:
- Office アプリのリボンを拡張
- Outlook アイテムの表示時にコンテキストの隣に表示
- 特定のイベントが発生したときにタスクを実行(例:新しいメッセージの作成時)
Office JavaScript API
Office JavaScript API には、アドインを構築し、Office コンテンツやウェブサービスと対話するためのオブジェクトとメンバーが含まれています。Excel、Outlook、Word、PowerPoint、OneNote、および Project で共有される共通のオブジェクトモデルがあります。
次のステップ
Office アドインの開発について詳しく学ぶには、Office アドインの開発 をご覧ください。
さらに知っておくべきこと
Office アドインを活用して、さまざまな機能を引き出すことができることがわかりました。ぜひ、それらを使ってデジタル業務をさらに効率化してみてください。
————-
Office Add-ins platform overview – Office Add-ins
Source link
Overview of Office Add-ins
Office Add-ins leverage web technologies (HTML, CSS, JavaScript) to enhance Office applications like Outlook, Excel, Word, PowerPoint, OneNote, and Project. These add-ins work across multiple platforms, including Windows, Mac, iPad, and browsers.
Key Features
- Functionality Extension: Add-ins can bring in external data, automate tasks, and utilize the Microsoft Graph API for productivity.
- Rich Interactive Objects: You can embed visuals like maps and charts into Office documents.
Differences from Traditional Add-ins
Unlike older technologies like COM and VSTO (which are limited to Windows), Office Add-ins operate in a web-based environment. The application loads and integrates add-ins via a manifest, which connects them to the Office UI.
Advantages of Office Add-ins
- Cross-Platform: Available on multiple devices and operating systems.
- Centralized Deployment: Admins can manage distribution across an organization.
- Easy Distribution via AppSource: Publish to a wider audience.
- Standard Web Technology: Leverage various libraries and frameworks.
Components of an Office Add-in
- Manifest File: Details the add-in’s properties, integration settings, permissions, and capabilities.
- Web Application: Hosted on a web server, enabling interaction with Office documents and online resources.
Extending Office Functionality
- Custom UI and Task Panes: Define new UI elements and allow user interaction via task panes.
- Custom Buttons/Menu Commands: Integrate buttons into the ribbon for easy access.
Specific Use Cases
- Outlook Add-ins: Enhance interactions within emails and calendar events.
- Content Add-ins: Embed web-based objects for rich data experiences in Excel and PowerPoint.
Development with Office JavaScript APIs
These APIs provide a common model across different Office applications, facilitating access to core objects like paragraphs and workbooks for creating specific functionalities.
Getting Started
For a comprehensive guide, refer to resources on developing Office Add-ins, including sample code to build your first add-in.
Conclusion
Office Add-ins offer a flexible, cross-platform solution for enhancing Office applications using modern web technologies, making them a valuable tool for developers and organizations looking to improve productivity.