This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Creating a new XL file using Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Creating a new XL file using "File"

Sat Nar
Ranch Hand

Joined: Oct 22, 2004
Posts: 83
Hi,
In my application, i am creating a new XL file using the code below.

File f = new File("ABC.xls");

There is a link in my application which opens this file. The XL file created using the above code is of type MS Office 97-2003. If i want to create a XL of type MS Office 2007, what should i do?

Thanks in advance.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
That code just creates a File object with a given name, assuming the "current" directory. It has nothing to do with the XL content type and does not create a disk file.

Bill
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Creating a new XL file using "File"