Spreadsheet_Excel_Writer yapma Satırlar uzun genişliği

1 Cevap php

Nasıl biraz daha uzun satırlar yapabilir? Ben çıkış excel herşey baskılar para cezası ise başlık biraz uzun ise, ancak başlık okunabilir değildir.

Bunu nasıl düzeltebilirim?

1 Cevap

Muhtemelen sonra sabitleme ihtiyacı sütun genişliği bulunuyor.

Excel Sadece CSS overflow mülkiyet gibi içeri o sütun genişliğinden daha geniş çalışan bir hücrede herhangi bir içerik gizler. Genellikle bu hücrenin sağ tarafta küçük bir simge ile belirtilir. Sütunun sağ kenarını çift tıklatarak sütunu AutoExpand olacaktır. Baştan onu görünür hakkına sahip olmak için, sütun genişliğini artırmak gerekiyor.

Örnek this newsgroup entry alınan

// Creating a workbook
$workbook = new Spreadsheet_Excel_Writer();

//Setting column width
$worksheets1->setColumn(0,0,10.00);

Aynı giriş teklif (fixed spelling):

This example breakdown is as follows...
setColumn(0,0,10.00) == the first column to be affected by the width
setColumn(0,0,10.00) == the last column to be affected by the width
setColumn(0,0,10.00) == the width as a float

The setColumn() needs to be set before any data is being written to the spreadsheet. If you only want one column to be affected by setColumn() then you set the first and last column params to the same column number. If you want to affect more than one column you can set the last column to the desired column number, just remember the column numbering begins with a 0.

PEAR paketi ile çalışmıyor durumda, PHPExcel deneyin