Connecting to QuickBooks desktop

和自甴很熟 提交于 2019-12-22 09:56:01

问题


I'm trying to connect to QuickBooks Accountant 2011 using the usual QBFC classes (C#).

QBSessionManager sessionManager = new QBSessionManager();
sessionManager.OpenConnection("", "Application");

A I know, from Intuit samples the code above should connect to the opened instance of aQuickBooks application.

The error that I'm getting is: Retrieving the COM class factory for component with CLSID {3C801F08-CDC5-4129-AAE8-CCC4F116B5BE} failed due to the following error: 80040154.

Yes, I've build the project using x86 as the target, but I guess I'm missing something. Do I need to install the QuickBooks SDK on the client computer? I'm using QB SDK 10, do I need to use QB SDK 11?

Please guide me in the right direction.

PS: I did another application that uses QBOE, which is working OK, but this time I'm stuck on trying things that don't make sense.


回答1:


I found the issue. Seems like the client computer, that will be using the application needs to have installed the QuickBooks SDK. Should of tried that earlier :)




回答2:


In the SDK, you get some installers for the redistributable binaries that resides at

C:\Program Files (x86)\Intuit\IDN\QBSDK11.0\tools\installers

According to the QB site, you can't do the redistribution any other way.



来源:https://stackoverflow.com/questions/8341637/connecting-to-quickbooks-desktop

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