Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 20th, 2005, 06:21 AM
Matek Matek is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 1 Matek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 40 sec
Reputation Power: 0
How to open xls in java

Hi. Im new here. Sorry for my English.

I have a problem. Im doing a aplication in java. I must open word or excel document and take table from it and print it on my aplication window. Im programing in java for a month mayby so i need help. Pls ... someone can help me? Some code ... some simple program working which opens xls and show table from it in java aplication. .... Thank u very much for all posts.

Reply With Quote
  #2  
Old October 29th, 2005, 08:03 AM
gertcuppens's Avatar
gertcuppens gertcuppens is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 118 gertcuppens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 28 m 17 sec
Reputation Power: 14
some interesting websites

Take a look at the following websites :
MS on Excel and Java
Java Excel API
JXLS
Excel libraries

Reply With Quote
  #3  
Old January 27th, 2009, 11:17 AM
zett zett is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2009
Posts: 1 zett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m
Reputation Power: 0
Thumbs up a solution

A solution can be to:

1. convert doc/xls to html
2. extract the table from html code

1. code example

import officetools.OfficeFile; // available at dancrintea.ro/html-to-pdf/
...
FileInputStream fis = new FileInputStream(new File("test.doc")); // works with xls also
FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf");

2. Just read the html file, as a text file and take the table that you need

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > How to open xls in java


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap