A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
Other JSE/JEE APIs
Printing from Excel Sheet
Joined: Nov 02, 2005
Aug 22, 2006 03:04:00
AS per my requirement I need to print the data from
api (not with AWT and swing).
Joined: Mar 22, 2005
Aug 22, 2006 03:27:00
If you don't mind a hackish solution:
save the file to be printed to a well-known filename, e.g. "tmp.xls"
use the Runtime class to start Excel with a particular file, e.g. "printing.xls"
"printing.xls" should contain a macro that opens "tmp.xls" and prints it
Obviously this method has a number of limitations and drawbacks, but it will get the job done.
I agree. Here's the link:
subject: Printing from Excel Sheet
Read excel sheet using struts
Embedding Excel in JSP
Excel Reading using java
Printing from Applet
Print spreadsheet using poi???
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015