Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Text with very small font doesn't fit in cell when printing

$
0
0
Hi everybody!

I've got a problem with PHPExcel : I have to generate a xlsx file on the fly that displays a table with a lot of data.

This document has to be printed in a minimum of pages. So I set the font to 6 pts and played with document margins. So, on screen, the sheet is displayed in the right way but not when I print it. Sometimes, the text doesn't fit anymore in some cells and it is cut off. I have to increase the row height manually.

I tried some tricks with things like
$objPHPExcel->getActiveSheet()->getRowDimension($rowNumber)->setRowHeight(-1);
...or to change the font but the problem still here.

Can someone can give me a hand or just explain to me what I am doing wrong? It would be much appreciated! Thank you very much!

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>