简体   繁体   English

如何将Excel单元格导出到特定的HTML标签?

[英]How can I export Excel cells to specific HTML tags?

I would like to ask if there is a way to export data from excel cells and fill specific tags in an html document. 我想问一下是否有一种方法可以从excel单元中导出数据并在html文档中填充特定标签。

For example, lets say a cell in the Excel document has the price of the product, I would like to export it and add it in a specific area in the HTML document named #product_price for example. 例如,假设Excel文档中的某个单元格具有该产品的价格,我想将其导出并将其添加到名为#product_price的HTML文档的特定区域中。

Anyone knows a way? 有人知道吗?

Thanks for your time, 谢谢你的时间,

Bill. 法案。

I'd start here: http://phpexcel.codeplex.com/ Remember there are limitations to the sizes of sheets it can read, which seems to be about 80000 cells. 我将从这里开始: http : //phpexcel.codeplex.com/请记住,它可以读取的纸张大小存在限制,这似乎是大约80000个单元格。 If you exceed that (or if you don't want to use a 3rd party library, or you want faster performance) convert the excel sheets to CSV and use PHP's fgetcsv function: http://www.php.net/fgetcsv 如果超出该限制(或者如果您不想使用第三方库,或者想要更快的性能),请将excel工作表转换为CSV并使用PHP的fgetcsv函数: http : fgetcsv

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

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