简体   繁体   English

如何编写从html文件到Excel文件的输出命令?

[英]how to write to output a command from a html file to an excel file?

I have a html file which I want to write into an excel file. 我有一个要写入Excel文件的html文件。 I thought the command I should put in my .bat file would be myfile.html > myfile.xls OR myfile.html >> myfile.xls 我以为我应该在.bat文件中输入的命令是myfile.html> myfile.xls或myfile.html >> myfile.xls

What it is doing is creating the file but when I open it is renamed correctly but blank in terms of content. 它正在执行的操作是创建文件,但是当我打开文件时,文件名已正确重命名,但内容空白。 the html file is just a massive table of data so surely it can just post it to the excel file correctly? html文件只是一个庞大的数据表,因此可以肯定地将其正确地发布到excel文件中吗?

如果html页面位于IE中,则可以在表格末尾创建一个按钮,单击该按钮即可执行javascript,并使用activeXobject在.xls中下载表格内容,也可以重定向到另一个为sple设置响应类型的jsp页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM