Click here to Skip to main content
15,909,445 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i want to open a excel file and read it when excel is not installed on my machine.
Posted
Comments
Nayan Rudani 10-Jun-14 3:03am    
it is not possible.
if you want to Work with Excel then it is necessary to install
Nirav Prabtani 21-Jun-14 7:02am    
Kone kidhu bhai tane aa??
it is possible .
Nayan Rudani 23-Jun-14 0:05am    
then how can i open excel document without install it.
Nirav Prabtani 23-Jun-14 0:46am    
visit on this link.. :)

http://lmgtfy.com/?q=read+excel+file+without+excel+installed+c%23

You can "open" any file without the program that created it installed:
C#
byte[] data = File.ReadAllBytes(pathToFile);
will do it for most situations.
The problem is in understanding it, and displaying data.

Think about it: a website just emits a stream of HTML: which you can read and work out what the website looks like - or you can feed that HTML into a browser application and it will do it for you. The latter is a lot quicker and simpler! :laugh:

It's the same with Excel: you can read the file, but unless your software understands Excel data format (and there have been a number of them over the years) you can't easily do anything with the data. You need to install Excel, or use a library which can read Excel data in order to use the information. Google can help you find an appropriate library - I have no idea what you are trying to do or what your priorities are, so it's best if you start searching yourself.
 
Share this answer
 
This article[^] should get you going without the need to install Excel on the target computer.
 
Share this answer
 
You can read and write Excel documents without Microsoft Excel installed in C#:
These are some of the open source tools you can use:

http://epplus.codeplex.com/[^]
https://closedxml.codeplex.com/[^]
https://npoi.codeplex.com/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900