InfoPath 2010:从独立类库引用 XmlFormHostItem 类?
InfoPath 表单继承自 XmlFormHostItem 类。我可以在 Button 控件的 VSTA 2005 事件处理程序中使用 XmlFormHostItem 类型。为了重用此代码,我希望从独立的类库中执行相同的操作。
详细信息:Microsoft.Office.InfoPath.XmlFormHostItem 程序集:Microsoft.Office.InfoPath,版本=14.0.0.0
我可以从独立类库引用程序集 Microsoft.Office.InfoPath(作为 PIA 库),但 XmlFormHostItem 类型不可用。
An InfoPath form inherits from the XmlFormHostItem class. I can use the XmlFormHostItem type in the VSTA 2005 event handler of a Button control. In order to reuse this code, I wish to do the same from a stand alone class library.
Details: Microsoft.Office.InfoPath.XmlFormHostItem
Assembly: Microsoft.Office.InfoPath, Version=14.0.0.0
I can reference the assembly Microsoft.Office.InfoPath (as a PIA library) from the stand alone class library, but the XmlFormHostItem type is not available.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过引用位于
它的程序集来解决,结果发现有多个 Microsoft.Office.InfoPath 程序集公开了部分或完整的 InfoPath 功能集。
有关 MSDN 的详细信息:了解 InfoPath 对象模型和开发环境
Solved by referencing the assembly located at
it turned out there are a multiple Microsoft.Office.InfoPath assemblies exposing a partial or full InfoPath feature set.
More information on MSDN: Understanding InfoPath Object Models and Development Environment