[
https://issues.apache.org/jira/browse/FREEMARKER-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dániel Dékány closed FREEMARKER-210.
------------------------------------
Resolution: Invalid
FreeMarker itself contains no facility to generate Excel files. You need to use
a higher level library/framework for that. Some of those possibly use
FreeMarker templates, but also add extra steps around that (like packaging the
template output XML into an xlsx file).
Thus, this is out of scope in this project, and I close this issue.
> Use freemarker to export Excel files. After opening Excel files in Office,
> you will always be prompted "The file format and extension name do not match.
> The file may be damaged or unsafe"
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FREEMARKER-210
> URL: https://issues.apache.org/jira/browse/FREEMARKER-210
> Project: Apache Freemarker
> Issue Type: Bug
> Components: engine
> Affects Versions: 2.3.29
> Environment: springboot + freemarker(2.3.31) + office(2010或2021)
> Reporter: Elivs Rong
> Priority: Major
> Attachments: image-2022-09-21-11-35-14-194.png
>
>
> {*}Use freemarker to export Excel files. After opening Excel files in
> Office{*}, you will always be prompted "The file format and extension name do
> not match. The file may be damaged or unsafe", like this:
>
> !image-2022-09-21-11-35-14-194.png!
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)