I know I CAN do that but we are trying to produce ...
# general
j
I know I CAN do that but we are trying to produce nicely formatted results that we can send to customer in excel
t
Have you also tried this on a PC (vs Mac)?
j
that’s gonna be my next test
t
I tend to see more excel issues on mac, fwiw
j
I spent a while thinking it was something I was doing wrong in my SuiteScript, only to realise I get the exact same error when working with a saved search result download
OK does seem to be Mac issue. Superb. 😐
1
m
How are you generating the Excel file in SuiteScript? I've had decent success with Sheet.js in a recent project (haven't tried on a mac though)
j
just like this:
message has been deleted
…..
then
Copy code
var statement_file = file.create({
					    name: filename + '.xls',
					    fileType: file.Type.EXCEL,
					    contents: xml
					});
context.response.writeFile({file: statement_file});
t
crazy idea, append with .xlsx instead of .xls
I'm guessing there is some kind of conflict between the file extension and the meta-xml you have in there