excel - Opening xlsx file created with SpreadSheetGear -



excel - Opening xlsx file created with SpreadSheetGear -

i have created simple excel file using spreadsheetgear. if save xls file

workbook.saveas("file.xls", spreadsheetgear.fileformat.excel8);

and attach email, can open on phone (tested both iphone , android).

if save xlsx file

workbook.saveas("file.xlsx", spreadsheetgear.fileformat.openxmlworkbook);

and attach email, cannot open on phone.

if open xlsx file attachment on computer , save no changes , attach email, can open on phone.

apparently excel saves file differently ssg. file size of xlsx file attachment 9 kb. when open on computer , save it, new file size 24 kb.

some of users prefer xlsx format. there can create ssg generated file attachment open excel generated file attachement?

ios depends on attributes beingness nowadays in worksheet info of open xml file format parse these files. spreadsheetgear not write these attributes out because listed optional in open xml file format specification and, also, omitting them reduces file size, have noted. excel, whatever reason, writes out these optional attributes , other third-party components times rely on presence function correctly. spreadsheetgear v5 added workaround write out these attributes enabling "experimental" option. alternative added because ole db provider exhibits errant behavior. might seek next , see if helps in getting spreadsheetgear improve work viewer:

iworkbookset workbookset = factory.getworkbookset(); workbookset.experimental = "oledbopenxmlworkaround"; iworkbook workbook = workbookset.workbooks.open(@"c:\temp\badworkbook.xlsx"); workbook.saveas(@"c:\temp\goodworkbook.xlsx", fileformat.openxmlworkbook);

please see spreadsheetgear.iworkbookset.experimental property more info on feature.

from can tell, ios/andriod/etc depend on other optional features available in file formats spreadsheetgear either doesn't back upwards or write out default. instance, ios depends on "data cache" stored within charts display chart series info points , spreadsheetgear's back upwards writing out info cache limited. can result in charts not displaying expected in ios, android, etc.

excel spreadsheetgear

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -