Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2007, 08:34 PM
Member
 
Join Date: Jul 2007
Posts: 1
priyankabhar is on a distinguished road
writing to a excel file from java program
Hi,

I want to create and write to a excel file from a java program. I found a tutorial online and wrote a java file as under:

Code:
import java.io.File; import java.util.Date; import jxl.*; import jxl.write.*; public class jExcel{ WriteableWorkbok workbook = Workbok.createWorkbook(new File("output.xls")); public static void main(String args[]){ WriteableSheet sheet = workbook.createSheet("First Sheett",0); Label label = new Label(0,2,"A label record"); sheet.addCell(label); Number number = new Number(3,4,3.1459); sheet.addCell(number); workbook.write(); workbook.close(); } }
But when I compile this file, I get errors telling that package jxl does not exists and so on. Do I need to download it ? I am really new to it but I need to do the job. Please give some ideas.

Thanks,
Priyanka

Last edited by JavaBean : 07-10-2007 at 09:18 PM. Reason: Code is placed inside [code] tag.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-10-2007, 09:05 PM
Member
 
Join Date: Jul 2007
Posts: 51
mary is on a distinguished road
You can download from here
SourceForge.net: Files
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading data from Micrsoft excel and writing to notepad abhishek.jain New To Java 2 06-18-2008 01:24 PM
How to get the last modified date of a file from a java program Java Tip java.io 0 04-04-2008 03:45 PM
Help needed writing a program... Francis New To Java 2 11-22-2007 03:03 PM
writing to a file bugger New To Java 1 11-11-2007 03:49 AM
Poblem in Compiling a c++ file from a java program... Amit Kr. Mishra New To Java 0 11-06-2007 11:41 AM


All times are GMT +3. The time now is 12:41 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org