since youll be trying to escape the applet's sandbox, some security implications might arise with this solution, but basicly I think you can get Runtime.exec to do the job for you. First create a file containing you sheet's data, than use an os-specific command to launch the excel application. on win32, you may call 'start <filename.xls>' and os will take care of the rest. read sun's documentation about configuring an applet to do this, probably by signing your applet's jar file, using doPriviliged, or something of that sort.
-----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Balaji M (CTC) Sent: Tuesday, May 28, 2002 7:11 AM To: [EMAIL PROTECTED] Subject: Regarding Sending data from an applet to an Excel. Hello, I want your advise regarding a problem i am facing. I have an applet which displays some data to the user in the form of rows and coloumns. The user can select some rows and wants that data to be printed in an excel sheet (not ion the browser an excel application has to be opened.) The applet should be used for printing the data to an excel sheet directly and not thru the servlet. Can you please suggest some ideas which i can follow. Thankx a lot , Balaji M. ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
