473,569 Members | 2,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to open and read cell values of MSEXCEL using java

7 New Member
Hi All,

I am newbie to this forum. I have tried to open excel file using java, but problem is how read contents of excel cells.

I have tried same in VB, but i don't know how to do it using java.

Here is the my VB code, someone help using same in JAVA.

Set objexcel = CreateObject("E xcel.applicatio n")
objexcel.Visibl e = True
objexcel.Workbo oks.Open (filePath+"\fil ename.xls")

Thanks,
Selva
Feb 23 '07 #1
2 2878
r035198x
13,262 MVP
Hi All,

I am newbie to this forum. I have tried to open excel file using java, but problem is how read contents of excel cells.

I have tried same in VB, but i don't know how to do it using java.

Here is the my VB code, someone help using same in JAVA.

Set objexcel = CreateObject("E xcel.applicatio n")
objexcel.Visibl e = True
objexcel.Workbo oks.Open (filePath+"\fil ename.xls")

Thanks,
Selva
Find a third party package for reading .xls files and read its documentation on how to use it.
Feb 24 '07 #2
liqdok
3 New Member
You can try jxcell,it is java lib provide apis to support most excel feathers(read,w rite,format,for mula,graph,char t etcs)

http://www.jxcell.net
Jun 1 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
21816
by: Phil Powell | last post by:
I am using PHP 4.3.2 to create a CSV file, however, Excel constantly views it as a single-column spreadsheet with everything in quotes, whereas OpenOffice Calc views it as a legitimate spreadsheet in separate columns/cells. class ReportGenerator { /** * Generate content based upon type
13
35509
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet and extract information from specific worksheets and cells. I'm not really sure how to get started with this process. I ran the COM Makepy...
0
1545
by: Lane Friesen | last post by:
I've developed a new form of client-based, secure 'Web Memory' that uses the JAVA or dotNET VM to launch a 'terminate and stay resident' program fragment that maintains persistence between web pages by program reloading. Web Memory is the basis for an Open Source e-commerce front end that could reduce web congestion and simplify online...
115
14005
by: TheAd | last post by:
At this moment I use MsAccess and i can build about every databound application i want. Who knows about a serious open source alternative? Because Windows will be a client platform for some time, i prefer a solution that (also) supports Windows. On the net I found a number of products that i looked at, but none of them gave me the impression...
3
2121
by: Jeff | last post by:
Help.. I have been using: string sId = ((System.Web.UI.WebControls.TextBox)e.Item.Cells.Controls).Text; To get the value of a cell in my datagrid. When I set the cell to read only, I get an error message. I need to retrieve this value so I can use it in my query to update the
3
15976
by: toffee | last post by:
Hi all, I got a pre-formatted spreadsheet. would it be possible using js to copy the data from a table on the current webpage, open the spreadsheet and paste the content ? if so, anyone got any links or pointers? i've already tried google - but all i get is ActiveX methods which work in a very few cases.
7
17188
blazedaces
by: blazedaces | last post by:
Hi guys, what I'm I have is a jtable with boolean variables in the first column and text in the next two (checkboxes). I want my tableChanged method to make it so when I check one of the checkboxes then it would change whether that third column is editable or not. I have made a short array that would hold values of either 0 or 1, basically...
0
1259
by: Padma Athimoolam | last post by:
Hi, I am new to VB and XML.I want to populate XML Values in Excel Sheet.My Sample XML is <?xml version="1.0" encoding="UTF-8" ?> - <workbook> - <worksheet name="Scorecard_KTC_MW"> <cell name="E9" formula="=sum(G9,I9,K9)" type="text" /> <cell name="E11" formula="=sum(G11,I11,K11)" type="Number" comment="Sample Help" /> <cell...
7
3756
by: somsub | last post by:
Hi, When I tried to open excel sheet created by below code with MSexcel it showing "Unable to read file " error . use Spreadsheet::WriteExcel; $workbook = Spreadsheet::WriteExcel->new("sm2.xls"); I am using winxp OS and MS excel 2003 ....
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7677
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.