Results 1 to 4 of 4
- 06-11-2012, 10:29 PM #1
Member
- Join Date
- Jun 2012
- Posts
- 2
- Rep Power
- 0
Read Excel File (.xls), search for a word in the workbook which is set as a varible
Hello,
At present i have created a form which is laid out as below:
Site: [Text Field]
Username: [Text Field]
Password: [Text Field]
[Submit] [Clear]
The submit and clear are clickable buttons. Basically the user will enter a Site name in the top field, click submit and i want the code to search the .xls to find the name of the site on the sheet. I think if i can get that far i will be able to figure the rest out myself.
The site is always included in column A (or 0) and only occurs once throughout the workbook, is there anything anyone can suggest or provide?
Do ask if you need any more info.
Thanks,
Matt
- 06-12-2012, 09:41 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Read Excel File (.xls), search for a word in the workbook which is set as a varib
So loop through the rows looking at the first element (get(0)).
Not sure what your exact problem is.Please do not ask for code as refusal often offends.
- 06-12-2012, 04:05 PM #3
Member
- Join Date
- Jun 2012
- Posts
- 2
- Rep Power
- 0
Re: Read Excel File (.xls), search for a word in the workbook which is set as a varib
Hello,
The problem i have is that i am quite new to this and cannot find the code/examples anywhere. Are you able to give me some sample code?
- 06-12-2012, 04:47 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Read Excel File (.xls), search for a word in the workbook which is set as a varib
API.
Quick guide.
How To.
All from the Apache POI website.Please do not ask for code as refusal often offends.
Similar Threads
-
copying a excel sheet from a workbook to another through java
By siteregsam in forum Advanced JavaReplies: 2Last Post: 04-06-2011, 04:38 PM -
Excel - (workbook.write();) in IF statement will not work.
By Daedalus357 in forum New To JavaReplies: 3Last Post: 02-23-2011, 07:25 PM -
Open an Excel workbook
By ch7787 in forum New To JavaReplies: 5Last Post: 07-20-2010, 05:20 PM -
Search a word(taken from one file) in another file and give the line as the output
By SwapnaNaidu in forum New To JavaReplies: 7Last Post: 11-19-2008, 02:09 PM -
Regarding retrieval of sheet names from a excel workbook
By yuvaraj23 in forum New To JavaReplies: 0Last Post: 03-11-2008, 02:20 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks