Hello Andrey Are you saying that you create an instance of the HSSFWorkbook class, create all of the associated cells for the workbook and then attach that object to an e-mail message expecting Excel to be able to interpret (read) it?
If so then this is the cause of the the problem; Excel does not understand the structure of the HSSFWorkbook object at all. You have to write the file out - call the write() method and save the file to disc - before it assumes a format that Excel is able to understand and interpret. --- On Wed, 7/9/08, Andrey Rogov <[EMAIL PROTECTED]> wrote: From: Andrey Rogov <[EMAIL PROTECTED]> Subject: Excel file attach error To: "POI forum" <[email protected]> Date: Wednesday, July 9, 2008, 12:19 PM Looking for advice! I created an HSSFWorkbook object. When I'm writing in a file the structure shows as correct. When I create a file and then subsequently attach to mail the file comes arrives as right. If I do a direct attachment of the HSSFWorkbook object upon saving, it turns out to be of the wrong structure and illegible. what's wrong ?
