Start New Discussion Reply to this Discussion how to open excel file in java
i want to open excel file in java project
11 Months Ago
Last Updated
Related Article: call matlab exe file in java program
is a Java discussion thread by shweta.tomar.798 that has 1 reply, was last updated 9 months ago and has been tagged with the keywords: call, matlab, exe, file, in, java, program.
kunaldinde
Newbie Poster
4 posts since May 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
phoenix_2000
Junior Poster
143 posts since Sep 2011
Reputation Points: 40
Solved Threads: 16
Skill Endorsements: 0
Hi,
I have gone through this program.
try{
String ROOT_PATH = "C:\\tomcat\\webapps\\SnetReport\\REPORT\\"; FileInputStream in = new FileInputStream(ROOT_PATH + sFilename);
response.setContentType("application/xls"); response.setHeader("Content-Disposition", "attachment;filename=\"Report.xls\"");
int i; while ((i=in.read()) != -1)
{ out.write(i); }
in.close();
out.close();}catch(Exception e)
System.out.println("...error while loading: "+e.toString());}
In the above code what is the sFileName
arjunrai
Newbie Poster
2 posts since Jun 2012
Reputation Points: 0
Solved Threads: 1
Skill Endorsements: 0
is this a seperate question? if so, please start a new thread. this is highjacking, and not really appreciated.
phoenix_2000
Junior Poster
143 posts since Sep 2011
Reputation Points: 40
Solved Threads: 16
Skill Endorsements: 0
We have a jar called POI for using excel sheet in java.. we have enough api for use them effictively
Jaisu_jas
Newbie Poster
1 post since Jun 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0617 seconds
using 2.65MB