我的问题是标题所说的!如何使用laravel excel of maatwebsite将Excel工作表内容复制到另一个内容!
Excel::load(Input::file('file'), function($file)
{
$sheet1 = $file->setActiveSheetIndex(0);
Excel::create('Filename', function($excel) use($sheet1) {
// Create first sheet
$excel->sheet('First sheet', function($sheet) use ($sheet1){
$sheet = $sheet1;
});
})->export('xls');
});
答案 0 :(得分:1)
02-15 22:22:36.373 8380-8415/? I/System.out: 77647 //correct size
02-15 22:22:36.373 8380-8415/? I/System.out: true
02-15 22:22:36.373 8380-8415/? I/System.out: reading
//here's the algorithmia code
02-15 22:22:36.388 8380-8415/? I/System.out: 0 //now it's empty
02-15 22:22:36.388 8380-8415/? I/System.out: false
02-15 22:22:36.388 8380-8415/? I/System.out: reading