• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Microsoft Office SDK for java

 
veena vasisht
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The web server we are using is Tom-Cat installed on HP-UX.
There are some data which I get from the server(in .csv format) & I need to show these data in excel(within webpage) on the client machine.
My questions are
1. How can I access the excel on the client machine from html page(thro' JSP or any other tool).
2. Is there anything like microsoft office java sdk that can be used to connect to excel?
Thanks in Advance,
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
there is definitly no MS JDK for Java.
But you can use this framework:
Jakarta POI
Works quite good.
Olli
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the client has an excel viewer on his machine then all you should need to do is set the mime type to application/vnd.ms-excel. You do this by calling:

before writing anything to the ServletResponse.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,
totally have overread that you only want to transport the file and open the plugin. Thought you would like to parse and edit it with java.
Olli
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Oliver Refle:
Sorry,
totally have overread that you only want to transport the file and open the plugin. Thought you would like to parse and edit it with java.
Olli

Actually, parsing a csv file is a cakewalk with the core Java API. Csv files are just comma separated lines with each line representing a row in the excel table and each field between the commas representing a cell.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic