简体   繁体   English

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

[英]deploy a windows form application which links to two excel files created on visual studio 2010 on another system

I have created a windows form application in visual studio 2010 which has 4 forms in it. 我在Visual Studio 2010中创建了一个Windows窗体应用程序,其中有4个窗体。 3 of these files are connected to 2 different excel files. 这些文件中的3个连接到2个不同的excel文件。 Now, I want this application to run on another system which has the same excel files. 现在,我希望此应用程序在具有相同excel文件的另一个系统上运行。 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. 我刚刚制作了该应用程序,但是对于在其他系统上将其作为应用程序运行该怎么做一无所知。

I understand that you are relying on "Interop" to communicate with Excel. 我了解您依靠“ Interop”与Excel进行通信。 In that case, you have to make sure that Microsoft Office is installed on the target computer. 在这种情况下,您必须确保在目标计算机上安装了Microsoft Office。 In order to avoid problems, confirm that the version is equal to the one you used to create the application. 为了避免出现问题,请确认该版本与用于创建该应用程序的版本相同。

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版本 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用ClickOnce部署我的C#(4.0)Visual Studio 2010基于Windows窗体的应用程序? - How to use ClickOnce to deploy my C#(4.0)Visual studio 2010 windows form based Application? 配置系统无法在Visual Studio 2010 Windows窗体中初始化 - configuration system failed to initialize in visual studio 2010 windows form 使用Visual Studio 2012将带有sql数据库的Windows窗体应用程序部署到另一台PC - deploy a windows form application with sql database to another PC using visual studio 2012 在Visual Studio 2010中识别Windows应用程序窗体的helpcontextid - identify helpcontextid in visual studio 2010 for windows application form Windows Form Application C锐视觉工作室2010 - Windows Form Application C sharp visual studio 2010 Visual Studio 2010 - 发布Windows窗体或WPF应用程序 - Visual Studio 2010 - Publishing a Windows Form or WPF application 在Visual Studio 2010中自动创建的文件 - Automatically created files in visual studio 2010 使用Visual Studio 2010继承Windows窗体类 - Inheriting Windows Form Classes with Visual Studio 2010 使用visual studio 2010在Windows窗体中创建线条? - Create lines in windows form with visual studio 2010? 在Visual Studio 2010 Express中部署Windows应用程序 - Deploying windows application in Visual studio 2010 Express
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM