How do i add (reference) Quick book's dll to silverlight project?

北慕城南 提交于 2019-12-22 18:15:56

问题


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

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

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.

Let me know is this possible..

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


回答1:


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.


来源:https://stackoverflow.com/questions/14495110/how-do-i-add-reference-quick-books-dll-to-silverlight-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!