如何在phpexcel中设置自动高度? [英] How to set auto height in phpexcel?
本文介绍了如何在phpexcel中设置自动高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 phpexcel 用PHP生成excel文档.
问题是,如何使用phpexcel进行自动高度行设置?
非常感谢:)
I am using phpexcel to generate excel document with PHP.
the question is, how to make auto height row using phpexcel?
many thanks :)
推荐答案
$excel->getActiveSheet()->getRowDimension(1)->setRowHeight(-1);
应将第1行的行高设置为自动".
Should set the row height to 'auto' for row 1.
这篇关于如何在phpexcel中设置自动高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文