We made some changes to ~interch/code/UI_Tag/backup_database.coretag - require Spreadsheet::WriteExcel; - import Spreadsheet::WriteExcel; + require Spreadsheet::WriteExcel::Big; + import Spreadsheet::WriteExcel::Big;- $xls = Spreadsheet::WriteExcel->new("$backup_dir/DBDOWNLOAD.xls"); + $xls = Spreadsheet::WriteExcel::Big->new("$backup_dir/DBDOWNLOAD.xls");
... and this worked very well indeed, since the "Big" module was already installed on our server. No more zero-byte results.
However, we also noticed that the coretag creates XLS files that are much larger than necessary for sparsely populated tables (where many of the columns are blank, as was true in our case). So the following change (also to backup_database.coretag) made the resulting XLS file substantially smaller:
- $sheet->write_string($i, $j, $fields[$j]);+ $sheet->write_string($i, $j, $fields[$j]) if length($fields[$j]);
This same patch should also work for IC 5.2. We have not checked earlier versions.
_______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.