• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MS Excel sheet using Java/JSp

 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
I need to pop up a chart when the user clicks a link on the page. The data for the chart is present in the Database.
I also need to pop up a MS-Excel sheet representing the Data in the database. Any pointers/ suggestions to achieve Excel-Java interaction w'd be of great help to me.
thanks in advance
karthik.
 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Karthik!
One way of generating an excel sheet is by setting the page directive of the JSP page to:
<%@ page contentType="application/vnd.ms-excel" %>
And after this the data should be supplied. One way of formatting the content is to put rows on separate lines of the document an to use tabs between each of the columns:
<%-- There are tabs, not spaces, between columns. --%>
2000 ��2001 ��2002���2003
50 ������60 �����70 �����80

Happy hacking!
Regards
------------------
Dominic Steng�rd
Sun Certified Java 2 Programmer
------------------

[This message has been edited by Dominic Steng�rd (edited March 26, 2001).]
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic