创建操作设计时表单的 Infopath 2007 插件
我正在尝试为 Infopath 2007 创建一个加载项。文档非常少。 我想要确定的是加载项在设计表单时可以采取什么样的操作。 大多数讨论和示例都是在用户填写表单时进行的。 例如,我可以在设计器中向表单添加新字段吗? 将新项目添加到架构中? 在设计图面上移动表单字段? 看起来并非如此,但我找不到任何明确的东西。
I'm experimenting with creating an add-in for Infopath 2007. The documentation is very skimpy. What I'm trying to determine is what kind of actions an add-in can take while designing a form. Most of the discussion and samples are for when the user is filling out the form. Can I, for example, add a new field to the form in the designer? Add a new item to the schema? Move a form field on the design surface? It doesn't appear so, but I can't find anything definitive.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,布莱恩可能是对的。
我尝试制作一个 VS 插件用于 InfoPath 开发。 它的限制非常大并且很难使用。 对于快速编写脚本工作不是很有效。
我发现 AutoHotKey 是与 InfoPath 一起使用的最佳临时脚本编写工具。 它没有直接与 InfoPath 集成,但我发现键+鼠标自动化可以完成我需要的大部分工作。
Unfortunatly Bryan is probably right.
And I have tried to make a VS plugin for use with InfoPath development. It is very restrictive and hard to use. Not very effective for quick scripting work.
I have found AutoHotKey to be the best ad hoc scripting tool for use with InfoPath. It doesn't integrate directly with InfoPath, but I have found key+mouse automation to accomplish most of what I have needed.
InfoPath 设计器没有对象模型。
我相信您可以获得的最接近的是 InfoPath 支持的 Visual Studio 托管的公开 API; 但我不相信这会给您带来您想要的设计器的编程控制。
http://msdn.microsoft.com/en-us/library/aa813327.aspx#office2007infopathVSTO_InfoPathDesignerAPIIntegratingInfoPath2007VisualStudio
抱歉,凯文。
There is no Object Model for the InfoPath designer.
I believe the closest that you can get is the exposed API for the Visual Studio hosting that InfoPath supports; but I don't believe that this will give you the programatic control of the designer that you'd like.
http://msdn.microsoft.com/en-us/library/aa813327.aspx#office2007infopathVSTO_InfoPathDesignerAPIIntegratingInfoPath2007VisualStudio
Sorry Kevin.