?
Solved

how to create a Excel workbook from java?

Posted on 2003-02-25
6
Medium Priority
?
595 Views
Last Modified: 2011-10-03
I am new in IT industry, working in banglore(india). I want to generate an excel file from java. Although i am creating currently a TAB seperated Excel file, that is working well. But an Excel file of TAB seperated format doesn't support any type of text formatting that is essential for me. Is it possible to do it in ServLets? if yes then how? and if no then how can i do it?
0
Comment
Question by:pankajgupta80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Accepted Solution

by:
userquin earned 100 total points
ID: 8023750
Hi:

There is a open API called POI from APACHE. It has some limitations but works fine.

Look at http://jakarta.apache.org/poi/ for more information.

Package you must use is org.apache.poi.hssf.usermodel.

Once you have created your XLS file you can send it via servlet to the client or something similar.

Bye.

J.
0
 
LVL 1

Expert Comment

by:TimB
ID: 8024005
Hello,

I used a set of ActiveX wrapper classes created by Gensym a while ago.  They have some demo code with the package.  It might be worth using this, but you might have to buy the software...

Like userguin's answer, you could do this with servlets too.  As long as everythings in your classpath.

good luck,
TimB
0
 

Assisted Solution

by:arempka
arempka earned 100 total points
ID: 8024520
Hy, pankajgupta80

try this one, it works fine.

http://www.andykhan.com/jexcelapi/
0
 

Expert Comment

by:CleanupPing
ID: 9059072
pankajgupta80:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9672019
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between userquin and arempka

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jimmack
EE Cleanup Volunteer
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

765 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