2
row A1 to H1
と入力カテゴリ1とmerge I1 to P1
をマージして、値としてカテゴリ2を入力したいとします。私はこれ以下のコードで試していますが、それは良いですが、2番目のカテゴリの値を入力していない列をマージしています。phpexcelでマージした後、行と列でセルの値を設定する際に問題が発生する
ここで何が間違っていますか?
$this->excel->getActiveSheet()->setCellValueByColumnAndRow(0, 1, "NetApp Nominator's Contact Information");
$this->excel->setActiveSheetIndex(0)->mergeCells('A1:H1');
$this->excel->getActiveSheet()->setCellValueByColumnAndRow(1, 1, "NetApp manoj");
$this->excel->setActiveSheetIndex(0)->mergeCells('I1:P1');
phpexcelを使用しています。