-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Adding style to sheets #40
Comments
I have currently sorted this by using the PHPExcel object inside laravel4-PHPExcel object |
Sorry for the late answer, soon we will look into a more Laravalesque way of doing it :) |
MaatwebsiteSupport
pushed a commit
that referenced
this issue
Apr 5, 2014
Example usages: Excel::loadView('excel.reports')
->sheet('Daily', function($sheet) use($dailyReports) {
$sheet->withReports($dailyReports);
})->sheet('Weekly', function($sheet) use($weeklyReports) {
$sheet->withReports($weeklyReports);
})->setTitle('Reports')->export('xls'); |
3 tasks
3 tasks
4 tasks
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do you use the view across all the sheets? Currently only the first sheet has the styles in the view applied to it. The code I use is below:
$excel_file = Excel::loadView("export.excel")
->sheet('Daily')->with( $daily_array )->setColumnWidth( $widths )->setColumnFormat( $formats )
->sheet('Hourly')->with( $hourly_array )->setColumnWidth( $widths )->setColumnFormat( $formats )
->setTitle('WebsiteExport');
$excel_file->export('xls');
The Column width and format works fine.
The text was updated successfully, but these errors were encountered: