2017-09-18 6 views
0

인접한 열의 두 셀을 X 평등 셀로 수평 분할해야합니다. 나는 세포를 가리키는 DocumentBuilder을 받았다. 수평 두께에 의해 갈라되고aspose의 중첩 테이블

enter image description here (왼쪽 셀을 무시 :

var table = builder.StartTable(); 

builder.InsertCell(); 

table.AutoFit(AutoFitBehavior.AutoFitToWindow); 

builder.Write("1"); 
builder.EndRow(); 

builder.InsertCell(); 
builder.Write("2"); 
builder.EndRow(); 

builder.EndTable(); 

하지만 여전히, 내부 테이블의 측면에 여유가있다 : 나는 셀에 별도의 테이블을 삽입 할 수 있습니다 결정 라인)

나는 그 table.AutoFit(AutoFitBehavior.AutoFitToWindow); 그 문제를 해결해야한다 봤지만 봤어. 무엇을 내가 원하는 출력 얻으려면 어떻게해야 하죠 : - 1 행, 세포가있는

enter image description here

답변

0

내가 행 cell.CellFormat.VerticalMerge = CellMerge.First 다른 모든 세포를 설정하여, 수직 셀을 분할 관리를 한 후 X를 추가 cell.CellFormat.VerticalMerge = CellMerge.Previous, 나누기 할 열의 셀 제외.