How to attach xlsx to email
I was trying to send xlsx file by email by using these approach:
The problem is - generated email attachment test.xlsx contains only sheet.xml inside. If I open it by notepad I see plain xml data:
There is no zip content as it should be for xlsx.
However if I choose to download it instead of streaming to email:
It downloads correct xlsx file.
So how can I make a full (zipped xlsx) attachment?
Re: How to attach xlsx to email
Never mind - I figured out it by myself :)
It should be OPENTBS_STRING as a parameter for Show():
That way it generates the right XLSX attachment.
Thank you anyway. OpenTBS is awesome!