Solved

Connect to excel-spreadsheet using .net odbc/oledb without ms-excel installed

Posted on 2015-01-05
5
211 Views
Last Modified: 2015-01-05
i have an excel spreadsheet - myfile.xls

I have a windows 2008 server(mywin2008server) . It does not have ms-office installed on it.

I wrote a .net application(mydotnetapp.exe)  in c# that connects to myfile.xls (using odbc or oledb ) and reads that file.

I want to run mydotnetapp.exe app on mywin2008server. But since it does not have ms-office or ms-excel installed, mydotnetapp.exe cannot not connect to myfile.xls

Is it possible to connect to myfile.xls even if ms-excel is not installed on that server?


pl guide  

thanks
0
Comment
Question by:ts84zs
  • 3
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
plusone3055 earned 500 total points
ID: 40531579
been through the EXACT same issue myself on more than one occasion. There are products that you can buy..  or SDK's you can  write off of  that are extremely time consuming and costly. After you go through all the pain and suffering of coding them and THEN altering your own code to make sure it still works you will find that instead of wasting all that time you convince the company to install another instance of MS Excel on the machine for $90.

I cannot post the links to the SDK's or applications as they are on competing sites which violate the terms of answering questions here.. However  if you insert into google search

.net read excel file without office installed

you will find them

Best of luck :)
0
 

Author Comment

by:ts84zs
ID: 40531594
ok thanks so much for the guidance....
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 40531599
no problem. Sorry that there isn't an 'easy' solution to this. First time I went through this I had written 5000 line Excel reader that was making massive changes to a file based on certain scenarios. then they tell me to place it on a box that had no excel... !!@#$ #$*(#()$*#)($*  

wasted 3 days of my time looking at options.. your time is valuable :)

Please award if its what you needed :)

Happy New year
0
 

Author Comment

by:ts84zs
ID: 40531818
yes... we also decided to put that app on user's desktop.. thanks again for the advice...
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 40531840
no problem
sometimes the path of least resistance does work :)
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question