开发者

ComAutomationFactory

开发者 https://www.devze.com 2022-12-27 10:35 出处:网络
Im trying to use the ComAutomationFactory class in VB .NET the example im working from is c# and is working fine but my project doesnt compile and says this class is no开发者_如何学编程t defined??

Im trying to use the ComAutomationFactory class in VB .NET the example im working from is c# and is working fine but my project doesnt compile and says this class is no开发者_如何学编程t defined??

also what is the return type? in the c# example it returns a type of dynamic but this type does not exist in vb .NET?


Possibly you're sample is old, according to this blog:

http://silverlight-essentials.blogspot.com/2010/03/breaking-changes-in-com-interop-between.html

It's changed name as:

The class ComAutomationFactory has been renamed to AutomationFactory. Additionally you have to reference System.Runtime.InteropServices.Automation for this class.

Regarding the return type, the answer to this question has a solution:

Iterating over Word Document Fields using ComAutomationFactory in Silverlight 4

0

精彩评论

暂无评论...
验证码 换一张
取 消