Solved

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

Posted on 2015-01-05
5
200 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now