经常导出EXCEL,上次需要导出到WORD,用原来EXCEL的方法不管用了,出现编码错误,郁闷,打开WORD文件,另存为HTML,看了一下源码,发现一段头文件,添加之后,正确导出了.
tableHeader = " <html xmlns:o=\"urn:schemas-microsoft-com:office:office\"";
tableHeader +="xmlns:w=\"urn:schemas-microsoft-com:office:word\"";
tableHeader += "xmlns:st1=\"urn:schemas-microsoft-com:office:smarttags\"";
tableHeader += "xmlns=\"http://www.w3.org/TR/REC-html40\">";
相关文章:
-
2022-12-23
-
2021-07-03
-
2021-12-05
-
2022-12-23
-
2021-05-15
-
2021-10-11
-
2021-05-27
-
2022-12-23
猜你喜欢
-
2022-01-01
-
2022-01-01
-
2022-12-23
-
2021-08-13
-
2021-09-27
-
2022-12-23
-
2022-12-23
相关资源
-
下载
2023-02-17
-
下载
2022-12-07
-
下载
2021-06-05