Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

Creating a new XL file using "File"

 
Sat Nar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
    Bookmark Topic Watch Topic
  • New Topic