Solved

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

Posted on 2015-01-05
5
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…

730 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