저는 현재 테이블의 셀 안에 텍스트를 넣기 위해 큰 어려움을 겪고 있습니다.
내가 이렇게 될 텍스트를 원하는 : 는 "컴퓨터의 컴퓨터 이름에서 분석"다음은PHPWord를 사용하여 표 셀에서 텍스트를 나누는 방법은 무엇입니까?
:
는
그리고 셀 내부에 다음과 같이 표시됩니다 "컴퓨터에서
컴퓨터 이름을 분석" 내 현재 코드 :
$table = $section->addTable('myTable');
$table->addRow(300);
$table->addCell(4000)->addImage('logo_sat.png',array ('width'=>100,'align'=>'center'));
$table->addCell(6400, $styleVertical)->addText("Analyse from computer \n $computername", $styleFirstHeader, $styleCenter);
$table->addCell(4000, $styleVertical)->addText("SAT" , $styleFirstHeader, $styleCenter);
$table->addRow(30);
$table->addCell(4000, $styleVertical)->addText("ADR $chantier_code/$analyse_id" , $styleFirstHeader, $styleCenter);
$table->addCell(5200, $styleVertical)->addText("Indice : $indice Date : $analyse_datemaj " , $styleFirstHeader, $styleCenter);
$table->addCell(5200, $styleVertical)->addText("Page : " , $styleFirstHeader, $styleCenter);
나는 문서 내부 $section->addTextBreak([$breakCount], [$fontStyle], [$paragraphStyle]);
을 보았다하지만이야 eems는 표 셀과 호환되지 않습니다.
우리가 어떻게 만들 수 있을지 아십니까?
당신이'CHAR (10)'(Enter 키)를 추가 시도? – WillardSolutions
@EatPeanutButter \ n의 위치에 추가했습니다. CHAR (10) – BackTrack57