Google Answers Logo
View Question
 
Q: Installed .NET application does not work with Excel files, works OK locally. ( No Answer,   0 Comments )
Question  
Subject: Installed .NET application does not work with Excel files, works OK locally.
Category: Computers > Programming
Asked by: gethelp-ga
List Price: $15.00
Posted: 09 Jul 2005 11:22 PDT
Expires: 10 Jul 2005 11:42 PDT
Question ID: 541573
I have VB.NET and C# applications

I need to fill in some cells in existing Excel files or save some
results in new Excel files (not just text CSV files)

It works perfectly on my computer with MS Office installed

I included all references (as I think) to the project that will be
required for working with Excel files: Interop.Excel and
Interop.Microsoft.Office.Core

THE PROBLEM:
When I compile the project and install it anywhere else it does not
work, crashes with exceptions.

I need it to work on computers with no excel or with any other Excel
versions. That is why .NET requires us to include all necessary
assemblies and compile the project with them. Well, sounds good in
theory. Below is the exception that I am getting.

How can I make my installation work on nay computer regardless of the
existence of Excel (or its version if it is installed) on any other
computer.

Thank you.

System.NullReferenceException: Object reference not set to an instance
of an object.
at .....btnMakeExcel_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies 
Here goes a list of all loaded assemblies...
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy