Rohit
Rohit

Reputation: 624

WindowsForm Application fails to run on different computer

I'm very new to VB programming. I've made an application on VB using Visual Basic 2013 Ultimate and want it to run on Windows XP installed on my office PC.

The application does convert a delimited text file into an excel file using text to column property of excel.

I've done proper targeting of .Net Framework (3.5) and compiled on proper CPU type (x86). My PC has Office 2013. The application runs fine on my PC (Windows 8.1 x64). I copied the executable file testExcel.exe from the debug directory to any location of my PC and it worked like a charm. However this is not working on another PC having Windows 7.

The error it shows is testExcel has stopped working after execution.

The other PC has Office 2010 and .Net framework (4.5) installed.

Can anyone advise what I am missing here? Is this a problem related to the excel library imported while coding in my PC? For example, I have imported below libraries after I added reference into my Project for **Microsoft

Excel 15.0 Object Library:

Imports Excel = Microsoft.Office.Interop.Excel

Imports System.IO

If yes, then what is the workaround? Please note that I have made a very basic application and tried to run in different PCs and it worked on those PCs. Please suggest me everything I need to care about to make this run on Windows XP machine. Sorry for my English. Thanks in advance.

Upvotes: 1

Views: 331

Answers (0)

Related Questions