依 Office 應用程式和專案類型提供的功能Features available by Office application and project type

Visual Studio 有幾種類型的專案範本,可支援不同的 Microsoft Office 應用程式商務案例,包括下列類型:Visual Studio has several types of project templates that support different business scenarios for Microsoft Office applications, including the following types:

  • 文件層級自訂。Document-level customizations.

  • VSTO 增益集。VSTO Add-ins.

    並非所有應用程式都可以使用每個專案類型。Not all applications can use every project type. 例如,文件層級專案僅用於 Microsoft Office Word 和 Microsoft Office Excel。For example, document-level projects are available only for Microsoft Office Word and Microsoft Office Excel. 同樣地,某些功能僅用於特定類型的專案或應用程式。Similarly, some features are available only for certain types of projects or applications. 例如,執行窗格只用於文件層級專案,而功能區擴充功能只用於某些應用程式。For example, the actions pane is available only in document-level projects, and Ribbon extensions are available only for some applications. 如需不同專案類型的詳細資訊,請參閱 Office 方案開發總覽 (VSTO)For more information about the different project types, see Office solutions development overview (VSTO).

注意

Office 專案範本只用於某些版本的 Visual StudioVisual StudioOffice project templates are available only in some editions of Visual StudioVisual Studio. 如需詳細資訊,請參閱 設定電腦以開發 Office 方案For more information, see Configure a computer to develop Office solutions.

適用于不同 Microsoft Office 應用程式的專案類型Project types available for different Microsoft Office applications

下表顯示您可以搭配每個專案類型使用的應用程式。The following table shows the applications that you can use with each project type.

專案類型Project types Microsoft Office 應用程式Microsoft Office application
文件層級自訂Document-level customizations ExcelExcel

WordWord
VSTO 增益集VSTO Add-ins ExcelExcel

InfoPath (僅限 InfoPath 2013 與 InfoPath 2010)InfoPath (InfoPath 2013 and InfoPath 2010 only)

OutlookOutlook

PowerPointPowerPoint

ProjectProject

VisioVisio

WordWord

ExcelExcel

不同專案類型中的可用功能Features available in different project types

下表顯示哪些專案類型提供各項功能。The following table shows which project types provide each feature.

功能Feature 提供功能的專案類型Project types that provide the feature 進一步閱讀Further reading
執行窗格。Actions pane. 文件層級專案。Document-level projects. 動作窗格總覽Actions pane overview
ClickOnce 部署。ClickOnce deployment. VS 與文件層級專案。VS and document-level projects. 部署 Office 方案Deploy an Office solution
自訂工作窗格。Custom task panes. 下列應用程式的 VSTO 增益集專案:VSTO Add-in projects for the following applications:

-Excel- Excel
-InfoPath (InfoPath 2013 和 InfoPath 2010 僅) - InfoPath (InfoPath 2013 and InfoPath 2010 only)
-Outlook- Outlook
-PowerPoint- PowerPoint
-Word- Word
自訂工作窗格Custom task panes
自訂 XML 組件。Custom XML parts. 文件層級專案。Document-level projects.

下列應用程式的應用程式層級專案:Application level projects for the following applications:

-Excel- Excel
-PowerPoint- PowerPoint
-Word- Word
自訂 XML 元件總覽Custom XML parts overview
資料快取。Data cache. 文件層級專案。Document-level projects. 檔層級自訂中的快取資料Cached data in document-level customizations
將 VSTO 增益集中的物件公開給其他 Microsoft Office 方案。Expose an object in a VSTO Add-in to other Microsoft Office solutions. VSTO 增益集專案。VSTO Add-in projects. 從其他 Office 方案呼叫 VSTO 增益集的程式碼Call code in VSTO Add-ins from other Office solutions
下列主控制項:The following host controls:

-圖表- Chart
-ListObject- ListObject
-NamedRange- NamedRange
-Content 控制項- Content controls
-書簽- Bookmark
文件層級專案。Document-level projects.

Word 和 Excel 的 VSTO 增益集專案。VSTO Add-in projects for Word and Excel.
主專案和主控制項總覽Host items and host controls overview
下列主控制項:The following host controls:

-XMLMappedRange- XMLMappedRange
-XMLNode- XMLNode
-XMLNodes- XMLNodes
文件層級專案。Document-level projects. 主專案和主控制項總覽Host items and host controls overview
多專案部署。Multi-project deployment. 文件層級專案。Document-level projects.

VSTO 增益集專案。VSTO Add-in projects.
逐步解說:在單一 ClickOnce 安裝程式中部署多個 Office 方案Walkthrough: Deploy multiple Office solutions in a single ClickOnce installer
Outlook 表單區域。Outlook form regions. Outlook 的 VSTO 增益集專案。VSTO Add-in projects for Outlook. 建立 Outlook 表單區域Create Outlook form regions
部署後動作。Post-deployment actions. 文件層級專案。Document-level projects.

VSTO 增益集專案。VSTO Add-in projects.
逐步解說:在 ClickOnce 安裝之後,將檔案複製到終端使用者電腦Walkthrough: Copy a document to the end user computer after a ClickOnce installation
功能區自訂。Ribbon customizations. 文件層級專案。Document-level projects.

下列應用程式的 VSTO 增益集專案:VSTO Add-in projects for the following applications:

-Excel- Excel
-InfoPath (InfoPath 2013 和 InfoPath 2010 僅) - InfoPath (InfoPath 2013 and InfoPath 2010 only)
-Outlook- Outlook
-PowerPoint- PowerPoint
-Project- Project
-Visio- Visio
-Word- Word
功能區總覽Ribbon overview
視覺文件設計工具。Visual document designer. 文件層級專案。Document-level projects. Visual Studio 環境中的 Office 專案Office projects in the Visual Studio environment

另請參閱See also