部署一个Windows窗体应用程序,该应用程序链接到另一个系统上在visual studio 2010上创建的两个excel文件

时间:2023-01-14 21:21:26

I have created a windows form application in visual studio 2010 which has 4 forms in it. 3 of these files are connected to 2 different excel files. Now, I want this application to run on another system which has the same excel files. I have just made the application but I am clueless on what to do in order to run it as an application on the other system.

我在visual studio 2010中创建了一个Windows窗体应用程序,其中包含4个窗体。其中3个文件连接到2个不同的Excel文件。现在,我希望此应用程序在具有相同excel文件的另一个系统上运行。我刚刚创建了应用程序,但我对于如何将其作为另一个系统上的应用程序运行无能为力。

1 个解决方案

#1


0  

I understand that you are relying on "Interop" to communicate with Excel. In that case, you have to make sure that Microsoft Office is installed on the target computer. In order to avoid problems, confirm that the version is equal to the one you used to create the application.

我知道您依靠“Interop”与Excel进行通信。在这种情况下,您必须确保目标计算机上安装了Microsoft Office。为避免出现问题,请确认版本与您用于创建应用程序的版本相同。

If the target version of Office is 2007 or older, the Redistributable Primary Interop Assemblies have to be installed on the given computer (link to the 2007 version).

如果Office的目标版本是2007或更早版本,则必须在给定计算机上安装可再发行的主互操作程序集(链接到2007版本)。

#1


0  

I understand that you are relying on "Interop" to communicate with Excel. In that case, you have to make sure that Microsoft Office is installed on the target computer. In order to avoid problems, confirm that the version is equal to the one you used to create the application.

我知道您依靠“Interop”与Excel进行通信。在这种情况下,您必须确保目标计算机上安装了Microsoft Office。为避免出现问题,请确认版本与您用于创建应用程序的版本相同。

If the target version of Office is 2007 or older, the Redistributable Primary Interop Assemblies have to be installed on the given computer (link to the 2007 version).

如果Office的目标版本是2007或更早版本,则必须在给定计算机上安装可再发行的主互操作程序集(链接到2007版本)。