Is it possible to convert an HTML document to Excel with multiple Worksheets/tabs?

自闭症网瘾萝莉.ら 提交于 2019-12-02 06:30:17

Try Ruby POI for generating OLE documents like Excel spreadsheets ( http://poi.apache.org/poi-ruby.html ).

The ExcelParser gem is wonderful if you need to handle importing .xls files as well ( http://raa.ruby-lang.org/project/parseexcel/ ).

You need to use MHTML to do multiple tabs. You can put the workbook information (which includes defining each of your tabs and the title that will appear on the tab) and the first tab data into an HTML file.

But to specify the content for each tab beyond the first, you have to use the mhtml spec and put a separator in between each table.

This will get you started on:Multipart HTML

I have not been able to find a tutorial to walk novices through the process.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!