Topic: Problem with Excel Reports
Whenever I output an excel report and try to open it in Excel I get the following message:
The file you are trying to open, 'PriceListing.xls', is in a different format than specified by the file extension.
When I force the file to open in excel, the data is not there.
I then compared the first few bytes of the above file with those of a properly formatted file and I found that there are 4 spaces as the first characters of the file. When I remove the spaces, the file opens properly in Excel.
Here is a hex dump of a file produced by FA:
file name: PriceListing.xls
mime type:
0000-0010: 20 20 20 20-d0 cf 11 e0-a1 b1 1a e1-00 00 00 00 ........ ........
0000-0020: 00 00 00 00-00 00 00 00-00 00 00 00-3e 00 03 00 ........ ....>...
0000-0030: fe ff 09 00-06 00 00 00-00 00 00 00-00 00 00 00 ........ ........
0000-0040: 01 00 00 00-08 00 00 00-00 00 00 00-00 10 00 00 ........ ........
and here is a hex dump of another excel file:
file name: UK_UBL_feed_template_v1.11.xls
mime type:
0000-0010: d0 cf 11 e0-a1 b1 1a e1-00 00 00 00-00 00 00 00 ........ ........
0000-0020: 00 00 00 00-00 00 00 00-3e 00 03 00-fe ff 09 00 ........ >.......
0000-0030: 06 00 00 00-00 00 00 00-00 00 00 00-01 00 00 00 ........ ........
0000-0040: 01 00 00 00-00 00 00 00-00 10 00 00-58 00 00 00 ........ ....X...
What is placing the spaces in the file? Is there anything I can change to get the excel function working?
TIA
Carmelo