Nick, 
>If you mean you create a HSSFWorkbook using a POIFSFileSystem constructor, 
>then that's your only way, yes. Any problem is likely to be with the low 
>level records that HSSF writes, rather than anything in the POIFS layer 

Yes, this is what I meant. If there is a problem with those low level records 
written by HSSF, I am not sure how I can identify the problem. I have found 
that by simply downloading the template, which includes sample data and all the 
macros, from webContent, it opens fine. Currently I have been simplifying the 
macro to no avail. Also, on the server side, in the Java, I removed all code 
that writes any additional data to the file so I am simply creating it. 
POIFSFileSystem fs = new POIFSFileSystem(new 
FileInputStream(RTC_global.templatePath + 
LibraryData.SBOM_IMPORT_MACRO_TEMPLATE)); 
wb = new HSSFWorkbook(fs); 
Then writing it out 
bos = new BufferedOutputStream(res.getOutputStream()); 

wb.write(bos); 
bos.close(); 
No luck with this. It seems POI is not fully compatible with Office 2010 and 
there is an issue with low level differences. I have a work around for our 
users whcih is to download to a "trusted Location". Do you know if adding a 
certificate of some sort to the template might replicate downloading to a 
trusted location? The file, despite all the dire warnings and the obvious 
difference noticed by Excel, does still work when opened. We are trying to make 
this seamless for our users. Any other thoughts or suggestions are most 
welcome. 

Jim Thomas 


----- Original Message ----- 
From: "Nick Burch-11 [via Apache POI]" 
<[email protected]> 
To: "jamestthomas" <[email protected]> 
Sent: Tuesday, February 1, 2011 7:04:04 AM 
Subject: Re: POI from Excel 2000 to Excel 2010 issues. 

On Mon, 31 Jan 2011, jamestthomas wrote: 
> I use the POIFSFileSystem object to copy the template . I was wondering 
> if there is another object I could try. 

Not sure I follow you there. If you just want to copy one file to another, 
simply use something like the File object. 

If you mean you create a HSSFWorkbook using a POIFSFileSystem constructor, 
then that's your only way, yes. Any problem is likely to be with the low 
level records that HSSF writes, rather than anything in the POIFS layer 

Nick 

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






If you reply to this email, your message will be added to the discussion below: 
http://apache-poi.1045710.n5.nabble.com/POI-from-Excel-2000-to-Excel-2010-issues-tp3365053p3366071.html
 
To unsubscribe from POI from Excel 2000 to Excel 2010 issues., click here . 
-- 
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/POI-from-Excel-2000-to-Excel-2010-issues-tp3365053p3366404.html
Sent from the POI - Dev mailing list archive at Nabble.com.

Reply via email to