Hi everyone,

I was just wondering if i can use POI to save a copy of the Excel file that
i am reading on the file system?  I've looked through the API only found
references to creating new Excel files.  If you have a suggestion how i
would go about this please post a response. Thanks.


I am using the following method to open the Excel Spreadsheet:

public static void parseFileSetup(){
try{
// open the Excel Spreadsheet
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(filename));
                                
// check if the file was found
if (fs==null){
  System.out.println("fs is null");
}
wb = new HSSFWorkbook(fs);
}catch ( IOException ex ) {
     ex.printStackTrace();
}
}


Eventually users will be uploading files so I need to save it.

-- 
View this message in context: 
http://www.nabble.com/How-to-save-the-Excel-file-to-file-system-tp23363786p23363786.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to