如何将Quick book的dll添加(引用)到silverlight项目? [英] How do i add (reference) Quick book's dll to silverlight project?

查看:110
本文介绍了如何将Quick book的dll添加(引用)到silverlight项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用silverlight项目.在此,我必须使用Quick books SDK(QBFC).但是问题是Silverlight不允许其他组件.

I am using silverlight project.In this i have to use Quick books SDK (QBFC). But problem is silverlight not allowing other assembles.

因为:
Silverlight使用不同的运行时和常规.Net框架的子集,这就是为什么我们只能引用Silverlight库的原因.

Because :
Silverlight uses a different runtime and a subset of the regular .Net framework, which is why we can only reference Silverlight libraries.

因此,我们不能使用Quick book dll作为对Silver Light的引用.但是通过使用Web服务或RIA服务,我们可以解决此问题.

So we cannot use Quick book dlls as a reference to silver light. But by using web service or RIA service we can solve tha problem.

让我知道这是可能的.

如果是,我该怎么办...如果不是,我必须遵循的方法

if yes how can i do... if not which approach i have to follow

推荐答案

首先,SL应用必须具有提升的特权.其次,您需要使用适当的ID创建一个COM对象.第三,您将拥有一个动态对象,但您像调用普通类一样调用它的方法.像这样:

First, the SL app has to have elevated privileges. Second, you need to create a COM object with the appropriate ID. Third, you'll have a dynamic object but you call its methods just like it's a normal class. Something like this:

var qb = AutomationFactory.CreateObject("QBXMLRP2.RequestProcessor");
qb.OpenConnection("", "");
// etc.

这篇关于如何将Quick book的dll添加(引用)到silverlight项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆