# Microsoft InfoPath

**Microsoft InfoPath** 是一款已停用的 [Microsoft Office](https://www.edgepedia.org/zh/microsoft-office) 应用程序，用于设计和填写基于 XML 的电子表单。它于 2003 年 8 月 19 日以 InfoPath 2003 之名首次发布，让组织能够构建表单模板，其数据以 XML 形式存储，并通过配套的服务器技术 InfoPath Forms Services，通过网页浏览器填写来自 [SharePoint](https://www.edgepedia.org/zh/sharepoint) 的这些表单。InfoPath 2013 是最后一个版本；微软于 2014 年 1 月宣布其退役，支持于 2026 年 7 月 14 日结束，并指定 Microsoft [Power Apps](https://www.edgepedia.org/zh/power-apps) 为 SharePoint 表单的推荐替代方案。<sup>[1](https://ptgmedia.pearsoncmg.com/images/9780321743602/samplepages/0321743601.pdf)</sup><sup> • </sup><sup>[2](https://www.microsoft.com/en-us/copilot/blog/2014/01/31/update-on-infopath-and-sharepoint-forms/)</sup><sup> • </sup><sup>[3](https://learn.microsoft.com/en-gb/lifecycle/products/infopath-2013)</sup>

| 关键事实 | 详情 |
|---|---|
| 首次发布 | InfoPath 2003，于 2003 年 8 月 19 日正式发布，是微软进军 XML 表单与数据收集领域的作品<sup>[1](https://ptgmedia.pearsoncmg.com/images/9780321743602/samplepages/0321743601.pdf)</sup> |
| 最终发布 | InfoPath 2013 桌面客户端与 InfoPath Forms Services 2013；此后未再发布新版本<sup>[2](https://www.microsoft.com/en-us/copilot/blog/2014/01/31/update-on-infopath-and-sharepoint-forms/)</sup> |
| 支持日期 | 开始日期 2013 年 1 月 9 日；主流支持结束于 2021 年 7 月 13 日；扩展支持结束于 2026 年 7 月 14 日，此次延长是为了确保与 SharePoint Server 2016 的兼容性<sup>[3](https://learn.microsoft.com/en-gb/lifecycle/products/infopath-2013)</sup> |
| 浏览器表单 | InfoPath Forms Services 在网页浏览器中呈现支持浏览器的表单模板；浏览器支持随 Microsoft Office SharePoint Server 2007 企业版引入<sup>[4](https://support.microsoft.com/en-us/infopath/introduction-to-infopath-forms-services)</sup><sup> • </sup><sup>[5](https://download.microsoft.com/download/2/7/A/27AF4CD4-7D9D-4701-9C4A-21022D5A8F4B/InfoPath%202010%20Enhanced%20Integration%20with%20SharePoint%20Server%202010%20and%20Its%20Implications%20When%20Designing%20Forms%20for%20Applications.pdf)</sup> |
| 文件格式 | 表单模板是单个 .xsn 文件（一个压缩的 .cab 包），其中包含 .xsf 清单、.xsd 架构、.xsl 视图、.xml 默认数据文件以及可选的业务逻辑<sup>[6](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/about-form-template-components)</sup> |
| 后继者 | Microsoft Power Apps 是为 SharePoint 列表创建和交付自定义表单的推荐解决方案<sup>[7](https://learn.microsoft.com/en-us/sharepoint/configure-infopath-forms-services)</sup> |

## 用途与设计模型

InfoPath 解决了一个反复出现的业务需求：用电子表单取代纸质表单，如费用报告、保险理赔和许可证申请，这些电子表单的数据可以被验证、提交到数据库或 Web 服务，并可合并或导出。<sup>[8](https://support.microsoft.com/en-us/infopath/scenarios-for-using-infopath-and-infopath-forms-services)</sup> 该产品将设计者构建的内容与用户填写的内容分开。设计者创建**表单模板**，这是一个扩展名为 .xsn 的文件，定义了成品表单的数据结构、外观和行为。用户填写**表单**，这是一个仅包含所输入数据的 .xml 文件；表单文件顶部的处理指令将其链接回其模板，该模板必须可用，表单才能正常工作。<sup>[9](https://support.microsoft.com/en-us/infopath/introduction-to-form-templates-and-forms)</sup>

模板可以基于 InfoPath 在添加控件时自动创建的空白数据源，也可以基于现有数据源，如数据库、Web 服务、XML 文档或架构，或存储在数据连接库中的连接设置。<sup>[10](https://support.microsoft.com/en-us/infopath/design-a-form-template)</sup> 几乎所有控件都绑定到表单数据源中的字段；如果控件未绑定，或绑定不正确，输入其中的信息就无法正确保存在底层的 .xml 文件中。与 XML 文档、数据库、Web 服务以及 SharePoint 库和列表的辅助数据连接可以填充列表框和其他控件。<sup>[11](https://support.microsoft.com/en-us/infopath/introduction-to-controls)</sup>

## 表单模板与文件

一个 .xsn 文件打包了若干种支持文件，统称为表单文件。设计者可以使用“另存为源文件”命令将它们提取出来进行检查。<sup>[9](https://support.microsoft.com/en-us/infopath/introduction-to-form-templates-and-forms)</sup>

- **表单定义文件**（.xsf）充当清单，描述模板如何组装以及使用哪些架构和资源。<sup>[6](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/about-form-template-components)</sup>
- **XML 架构**文件（.xsd）约束并验证表单底层的 XML；在设计器中创建的每个表单模板都至少包含一个用于运行时验证的 .xsd。<sup>[6](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/about-form-template-components)</sup><sup> • </sup><sup>[12](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/working-with-xml-schemas-in-infopath)</sup>
- **视图**文件（.xsl）是 XSL 转换，将表单数据呈现为 HTML；模板的不同视图就是同一数据的不同 HTML 转换。<sup>[9](https://support.microsoft.com/en-us/infopath/introduction-to-form-templates-and-forms)</sup>
- **XML 模板**（.xml）提供用户首次打开表单时看到的默认数据。<sup>[9](https://support.microsoft.com/en-us/infopath/introduction-to-form-templates-and-forms)</sup>
- 可选文件添加呈现元素（.htm、.gif、.bmp）和业务逻辑，业务逻辑可以是脚本（.js、.vbs），也可以是使用 [Visual Basic](https://www.edgepedia.org/zh/visual-basic) 或 C# 编写并编译、打包为 .dll 文件的 .NET 代码。<sup>[6](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/about-form-template-components)</sup>

“控件”任务窗格提供五大类共 30 多个控件：标准控件，如文本框、下拉列表框和日期选取器；重复和可选控件，如重复表和可选节；文件和图片控件；高级控件；以及自定义控件。<sup>[11](https://support.microsoft.com/en-us/infopath/introduction-to-controls)</sup>

## InfoPath Forms Services

**InfoPath Forms Services** 是 SharePoint 的服务器技术，使人们能够在网页浏览器中填写表单。用户无需在计算机上安装 InfoPath，也无需下载任何额外内容，即可填写支持浏览器的表单模板。将表单托管在服务器上还使组织能够在中央位置管理模板，并将表单数据与现有业务流程集成。<sup>[4](https://support.microsoft.com/en-us/infopath/introduction-to-infopath-forms-services)</sup>

当模板发布到运行 Forms Services 的服务器时，设计者可以将模板标记为支持浏览器。管理员控制用户表单模板的两项设置——用户表单模板是指非由开发人员部署、且不包含代码或业务逻辑的模板：用户是否可以发布支持浏览器的模板，以及此类模板是否可以在浏览器中呈现。默认情况下两者都允许；禁用呈现会迫使用户回到 InfoPath Filler 2013 客户端。管理员还可以指定豁免用户代理，如搜索索引器，它们接收的是原始 XML 文件而非完整网页，以加快索引速度。<sup>[7](https://learn.microsoft.com/en-us/sharepoint/configure-infopath-forms-services)</sup>

浏览器支持随 Microsoft Office SharePoint Server 2007 企业版引入，InfoPath 2010 则深化了与 SharePoint Server 2010 的集成。<sup>[5](https://download.microsoft.com/download/2/7/A/27AF4CD4-7D9D-4701-9C4A-21022D5A8F4B/InfoPath%202010%20Enhanced%20Integration%20with%20SharePoint%20Server%202010%20and%20Its%20Implications%20When%20Designing%20Forms%20for%20Applications.pdf)</sup>

## 安全模型

InfoPath 安全模型基于 [Internet Explorer](https://www.edgepedia.org/zh/internet-explorer) 实现的安全模型，使用安全区域和级别。由此产生两种部署方法。**基于 URL 的表单**是发布到 Web 服务器、SharePoint 表单库或文件共享时的默认形式，它们被沙盒化：其权限级别与从 .xsn 文件所在位置打开的网页相同，并且它们缓存在用户计算机上，从而支持离线使用。**基于 URN 的表单**使用[统一资源名称](https://www.edgepedia.org/zh/uniform-resource-name)而非发布 URL 来标识自身，并可通过在 .xsf 中将 xDocumentClass 元素的 requireFullTrust 属性设置为“yes”来请求完全信任；它们必须由安装程序或脚本在客户端注册，然后获得与本地运行的应用程序相同的权限。<sup>[13](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/additional-infopath-form-security-concepts)</sup>

在编辑器中打开的表单会被授予其位置和凭据所允许的最高信任级别，从已安装或数字签名模板的“完全信任”，到沙盒客户端、内联网和互联网级别，直至“受限”。请求的安全级别高于其可被授予级别的表单不会加载。<sup>[14](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/security-levels-email-deployment-and-remote-form-templates)</sup> InfoPath 对象模型中的每个方法和属性也带有安全级别，控制何时可以从表单代码中调用它们。<sup>[13](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/additional-infopath-form-security-concepts)</sup>

## SharePoint Online 限制

InfoPath Forms Services 在 SharePoint Online 中的行为与本地部署不同。Forms Services 是场级功能，因此在多租户环境中，本地部署可用的管理中心选项无法按租户更改。在那里有几项功能不可用：完全信任浏览器表单模板无法发布以供浏览器使用；表单模板中的托管代码不受支持，因为沙盒代码服务已被移除；并且由于身份验证不兼容，无法从 InfoPath 客户端调用内置的 SharePoint REST 终结点。实际限制也适用：添加到发布到表单库的表单浏览器实例中的附件会嵌入表单的 XML 中，且不得超过 5 MB；将 .xsn 文件转换为在浏览器中运行必须在 30 秒内完成，因此大型或非常复杂的模板可能可以发布到客户端，但无法在浏览器中打开。<sup>[15](https://learn.microsoft.com/en-us/troubleshoot/sharepoint/infopath/infopath-forms-services)</sup>

## 退役

2014 年 1 月 31 日，微软宣布将停用 InfoPath，并在 SharePoint、Access 和 Word 中投资新的表单技术。InfoPath 2013 将是桌面客户端的最后一个版本，InfoPath Forms Services 2013 将是服务器组件的最后一个版本，根据当时生效的生命周期政策，支持将持续到 2023 年 4 月。<sup>[2](https://www.microsoft.com/en-us/copilot/blog/2014/01/31/update-on-infopath-and-sharepoint-forms/)</sup> 结束日期后来被延长：InfoPath 2013 遵循固定生命周期策略，主流支持于 2021 年 7 月 13 日结束，扩展支持于 2026 年 7 月 14 日结束，此次延长是为了确保与 SharePoint Server 2016 的兼容性。<sup>[3](https://learn.microsoft.com/en-gb/lifecycle/products/infopath-2013)</sup>

在 SharePoint Server Subscription Edition 中，InfoPath Forms Services 已弃用，但在 2026 年 7 月 14 日之前仍受支持，此后将不再受支持；微软建议探索 Power Apps 作为 InfoPath 表单的潜在替代方案。<sup>[16](https://learn.microsoft.com/en-us/sharepoint/what-s-new/what-s-deprecated-or-removed-from-sharepoint-server-subscription-edition)</sup> 微软的配置指南同样指出，InfoPath Forms Services 2013 是最后一个版本，Power Apps 是为 SharePoint 列表创建和交付自定义表单的推荐解决方案，新表单可通过命令栏或 SharePoint 列表表单上的“自定义”按钮创建。<sup>[7](https://learn.microsoft.com/en-us/sharepoint/configure-infopath-forms-services)</sup>

## 版本

InfoPath 在退役前经历了四个主要版本：InfoPath 2003、InfoPath 2003 Service Pack 1、InfoPath 2007 和 InfoPath 2010，随后 InfoPath 2013 作为最终版本发布。InfoPath 2010 是一次包含大量新功能的重大发布，而 InfoPath 2013 只做了小幅升级，因此微软为 2013 用户保留了 2010 的帮助主题。<sup>[1](https://ptgmedia.pearsoncmg.com/images/9780321743602/samplepages/0321743601.pdf)</sup><sup> • </sup><sup>[17](https://support.microsoft.com/en-us/infopath/find-content-about-infopath-2010-and-2013)</sup> InfoPath 2010 于 2012 年 10 月 1 日从微软软件开发公司 Royalty Program 产品列表中移除，Office InfoPath 2007 则于 2010 年 10 月 1 日移除。<sup>[18](https://www.microsoft.com/en-us/licensing/licensing-programs/isvr-deleted-products-infopath)</sup>

## References

1. [Designing forms for SharePoint and InfoPath using InfoPath Designer 2010 (sample pages), Pearson](https://ptgmedia.pearsoncmg.com/images/9780321743602/samplepages/0321743601.pdf)
2. [Update on InfoPath and SharePoint Forms, Microsoft blog, January 31, 2014](https://www.microsoft.com/en-us/copilot/blog/2014/01/31/update-on-infopath-and-sharepoint-forms/)
3. [InfoPath 2013, Microsoft Lifecycle](https://learn.microsoft.com/en-gb/lifecycle/products/infopath-2013)
4. [Introduction to InfoPath Forms Services, Microsoft Support](https://support.microsoft.com/en-us/infopath/introduction-to-infopath-forms-services)
5. [InfoPath 2010 Enhanced Integration with SharePoint Server 2010, Microsoft download](https://download.microsoft.com/download/2/7/A/27AF4CD4-7D9D-4701-9C4A-21022D5A8F4B/InfoPath%202010%20Enhanced%20Integration%20with%20SharePoint%20Server%202010%20and%20Its%20Implications%20When%20Designing%20Forms%20for%20Applications.pdf)
6. [About Form Template Components, Microsoft Learn](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/about-form-template-components)
7. [Configure InfoPath Forms Services, Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/configure-infopath-forms-services)
8. [Scenarios for using InfoPath and InfoPath Forms Services, Microsoft Support](https://support.microsoft.com/en-us/infopath/scenarios-for-using-infopath-and-infopath-forms-services)
9. [Introduction to form templates and forms, Microsoft Support](https://support.microsoft.com/en-us/infopath/introduction-to-form-templates-and-forms)
10. [Design a Form Template, Microsoft Support](https://support.microsoft.com/en-us/infopath/design-a-form-template)
11. [Introduction to controls, Microsoft Support](https://support.microsoft.com/en-us/infopath/introduction-to-controls)
12. [Working with XML Schemas in InfoPath, Microsoft Learn](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/working-with-xml-schemas-in-infopath)
13. [Additional InfoPath Form Security Concepts, Microsoft Learn](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/additional-infopath-form-security-concepts)
14. [Security levels, email deployment, and remote form templates, Microsoft Learn](https://learn.microsoft.com/en-us/office/client-developer/infopath/form-templates/security-levels-email-deployment-and-remote-form-templates)
15. [InfoPath Forms Services differences between SharePoint Online and SharePoint On-Premises, Microsoft Learn](https://learn.microsoft.com/en-us/troubleshoot/sharepoint/infopath/infopath-forms-services)
16. [What's deprecated or removed from SharePoint Server Subscription Edition, Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/what-s-new/what-s-deprecated-or-removed-from-sharepoint-server-subscription-edition)
17. [Find content about InfoPath 2010 and 2013, Microsoft Support](https://support.microsoft.com/en-us/infopath/find-content-about-infopath-2010-and-2013)
18. [Products removed from software development company Royalty Program Product List - InfoPath, Microsoft Volume Licensing](https://www.microsoft.com/en-us/licensing/licensing-programs/isvr-deleted-products-infopath)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Office and business software › Titles symbols to M › Titles H to M

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/microsoft-infopath

English original: https://www.edgepedia.org/microsoft-infopath
