exe giving exception while running on xp
-
Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used
using Microsoft.Office.Core;
using Excel = Microsoft.Office.Interop.Excel;as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance
-
Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used
using Microsoft.Office.Core;
using Excel = Microsoft.Office.Interop.Excel;as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance
Do you have Excel installed on the XP machine? Is it the right version, or higher? If not, it won't work...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
Do you have Excel installed on the XP machine? Is it the right version, or higher? If not, it won't work...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used
using Microsoft.Office.Core;
using Excel = Microsoft.Office.Interop.Excel;as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance
-
Did you install the correct .NET framework? Did you install the correct Interop DLL's[^]?
I are Troll :suss:
-
satendrasitu wrote:
how i install interop
As described in the link that I posted, that's the reason why it's included :) Do read the note at the bottom;
MSDN states;
PIAs are version specific, so you should use the same version of the PIAs as the application version. For example, if you want to migrate your Microsoft Office XP managed code solution to Microsoft Office 2003, you should recompile the Office XP managed code solution with Office 2003 PIAs. You should also have two different setup packages—one for Office XP and another for Office 2003—if you intend for the same solution to work in both Office XP and Office 2003. Deployment of PIAs for Office XP is very different from that for Office 2003. For further information about these differences, see the ReadMe file included in the Office XP PIAs download[^].
I are Troll :suss:
-
satendrasitu wrote:
how i install interop
As described in the link that I posted, that's the reason why it's included :) Do read the note at the bottom;
MSDN states;
PIAs are version specific, so you should use the same version of the PIAs as the application version. For example, if you want to migrate your Microsoft Office XP managed code solution to Microsoft Office 2003, you should recompile the Office XP managed code solution with Office 2003 PIAs. You should also have two different setup packages—one for Office XP and another for Office 2003—if you intend for the same solution to work in both Office XP and Office 2003. Deployment of PIAs for Office XP is very different from that for Office 2003. For further information about these differences, see the ReadMe file included in the Office XP PIAs download[^].
I are Troll :suss:
-
thanks for this, but how I include this with my exe , because it is not run in client mechine
modified on Friday, April 1, 2011 5:46 AM
satendrasitu wrote:
thanks for this, but how I include this with my exe
Using a set-up application that installs all required components. Or, you'll have to copy them manually. You can't link them into the executable itself. ..wel, you could add it as an embeddable resource, unpack it and load it on demand, but that would probably cost more than the trouble would be worth.
I are Troll :suss:
-
Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used
using Microsoft.Office.Core;
using Excel = Microsoft.Office.Interop.Excel;as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance
Change your username as soon as possible, otherwise you'll wind up with endless adverts for hair-loss remedies, herbal viagra and pics of nudie ladies and/or gents in your inbox. Unless you want that of course :-).
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used
using Microsoft.Office.Core;
using Excel = Microsoft.Office.Interop.Excel;as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance
Actually this type of problem occur due to .net framework missing on the Client System. to run .net application it required its perquisites. It runs on higher version of XP because .net framework resides implicitly which is not in XP. so be confirm about it or give us more details what exception is generating while running your application on XP.
-
Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used
using Microsoft.Office.Core;
using Excel = Microsoft.Office.Interop.Excel;as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance
which exception it is throwing?