This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes populate the query values from reading .xlsx file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "populate the query values from reading .xlsx file" Watch "populate the query values from reading .xlsx file" New topic
Author

populate the query values from reading .xlsx file

sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 225


I am using above code to read content of XLSX.

I need to capture all first two column values( say username and password columns) of the .xlsx file.

I need to query database in a for loop etc with each set of username and password got from .xlsx file first two columns.

Then find the missing records in database and send csv file with missing record as email to user.

Querying, generating, emailing csv part of the code is with me. I would like to know how to populate first two columns of the data into the query.



processSheet() method has
>>>sheetParser.parse(sheetSource);

outputting all the data to console I believe. From Here I need to pass the first two columns of the .xlsx to the query. Please advise.
Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37943
    
  22
Too difficult for “beginning”. Moving discussion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: populate the query values from reading .xlsx file
 
Similar Threads
reading excel xlsx files to convert into CSV format
Generate large excel using POI
apache POI excel 2007 reading examples
Generate large excel using POI
Read a .xls,.xlsx file format using XSSF