JSP output word Excel

xiaoxiao2021-03-06  55

First, directly translate the contents of the

tag in HTML directly through the MS-Office program, Excel <% @ page contenttype = "Application / VND.MS-Excel; Charset = GBK"%> <% response .SetHeader ("Content-Disposition", "Attachment; FileName = Week_report.xls");%> Word <% @ page contenttype = "Application / VND.MS-Word; Charset = GBK"%> <% response.setheader "Content-Disposition", "attachment; filename = week_report.doc");%>

转载请注明原文地址:https://www.9cbs.com/read-90186.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.036, SQL: 9