-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cells format features #115
Comments
examples: use Vtiful\Kernel\Excel;
use Vtiful\Kernel\Format;
$excel = new \Vtiful\Kernel\Excel([
'path' => './'
]);
$excelObject = $excel->fileName('tutorial.xlsx');
$excelHandle = $excelObject->getHandle();
// new format object
$format = new Format($excelHandle);
// set format
$formatResource = $format->bold()
->italic()
->color(Format::COLOR_ORANGE)
->number('#,##0')
->toResource();
// insert data
$filePath = $excelObject->header(['name', 'balance'])
->data([
['viest', 1000],
['wjx', 100000]
])
->setColumn('B:B', 50, $formatResource) // set format
->output(); I hope this example will help you. |
Thank you. This will help me a lot. |
Your platform is Windows or Linux? |
I'm using Windows PHP 7.1. |
Please download PECL is building, just a moment, please. |
Really thank for your time. |
How can I format a specific cell?
Ex: Number format, percent format, color, font style only for a specific cell, ...
Thank you for the great excel lib.
The text was updated successfully, but these errors were encountered: