Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Excel documents handling

Thread view: 
Konrad Billewicz - 11 Oct 2005 13:36 GMT
Hi,

I need to read, modify and save large and compilcated Excel documents using
Java. I tried to use POI and JExcelApi but both of them are handling my
documents wrong (along with throwing exceptions / warnings) and SoftArtisans
OfficeWriter which works very good but is too expensive for my company (at
least $1800). Could you recomend other, OS or quite cheap software worth
using?

Best regards,
Konrad Billewicz
Paul Cager - 11 Oct 2005 15:38 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> Best regards,
> Konrad Billewicz

If your Java program is running on a Windows machine with Excel
installed, then you can use a Java / COM bridge to drive Excel's object
model directly.

IBM's Bridge2Java (also known as "Interface Tool") can access many
Windows COM objects, including Excel.

http://www.alphaworks.ibm.com/tech/bridge2java
Konrad Billewicz - 11 Oct 2005 16:13 GMT
> If your Java program is running on a Windows machine with Excel
> installed, then you can use a Java / COM bridge to drive Excel's object
> model directly.

We are considering this solution but the project is under development and it
would be quite difficult to integrate. Have you any other ideas?

Best regards,
Konrad Billewicz
Roedy Green - 13 Oct 2005 04:49 GMT
>We are considering this solution but the project is under development and it
>would be quite difficult to integrate. Have you any other ideas?

one other sort of bridge is the keystroke bridge where the Java
program types and the keystrokes are fed via JNI into Excel or some
other windows program. It is typing blind.

There of course there are CSV files which have just data but no
formulae. These are easy to create and read in java. See
http://mindprod.com/jgloss/csv.html

I worked on a Java spreadsheet engine that could import and export
Excel files.  Unfortunately the company went belly up.
I did the JavaDoc for it.  We must have got the Excel format docs
somewhere to write it.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Paul Cager - 13 Oct 2005 11:13 GMT
> > If your Java program is running on a Windows machine with Excel
> > installed, then you can use a Java / COM bridge to drive Excel's object
[quoted text clipped - 5 lines]
> Best regards,
> Konrad Billewicz

I guess it depends what is going wrong with the POI approach - is it
something like bad formatting? It might help to move as much processing
as possible into an Excel VBA macro, and use POI or Bridge2Java to
drive the macros. Horrible bodge, I know, but it might work.

Paul
TechBookReport - 12 Oct 2005 19:22 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> Best regards,
> Konrad Billewicz

Have you tried JACOB (Java COM Bridge)? Open source. Take a look at:
http://sourceforge.net/projects/jacob-project/

Signature

TechBookReport Java http://www.techbookreport.com/JavaIndex.html



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.