[英]is text overflow will work in phpspreadsheet?
我面臨的問題是,我無法將單元格值設置為文本溢出(未修剪或包裝)。 它在Libre Calc中始終隱藏着紅色三角形符號。
我有一個示例.xls工作表,我需要動態復制它。 我在Codeigniter框架中使用PHPSpreadsheet庫成功生成了相同的.xls表。
$spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();
$sheet->setTitle('1');
$sheet->getPageSetup()->setOrientation(\PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::ORIENTATION_LANDSCAPE);
$sheet->getPageSetup()->setPaperSize(\PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::PAPERSIZE_A4);
$query_date = $data['month_selected'].' '.$data['year_selected'];
$date = new DateTime($query_date);
$date->modify('first day of this month');
$firstday= $date->format('n/j/Y');
$date->modify('last day of this month');
$lastday= $date->format('n/j/Y');
$xrow = 1;
$sheet->setCellValue('A' . $xrow, 'Attedence for the Period Beginning From '.$firstday.' TO '.$lastday)->getStyle('I' . $xrow)->applyFromArray($borderArrayRowOther);
當我在Office 365和Libre Calc中看到該單元格中的文本時,該文本總是隱藏起來。 我需要雙擊以完整顯示它。 但我需要它充分顯示。
[重疊的文字] [1]: https : //i.stack.imgur.com/zi3Pj.png
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.