Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

16 Experts available now in Live!

Get 1:1 Help Now