1
Novacode.DocX
을 사용하면 테이블을 만들고 문서에 삽입하는 것이 쉽습니다.Novacode DocX 코드에서 테이블의 텍스트에 대한 세로 방향을 설정하는 방법은 무엇입니까?
// Create a document.
using (DocX document = DocX.Create(@"Test.docx"))
{
// Add a Table to this document.
Table t = document.AddTable(2, 3);
// Specify some properties for this Table.
t.Alignment = Alignment.center;
t.Design = TableDesign.MediumGrid1Accent2;
// Add content to this Table.
t.Rows[0].Cells[0].Paragraphs.First().Append("A");
t.Rows[0].Cells[1].Paragraphs.First().Append("B");
t.Rows[0].Cells[2].Paragraphs.First().Append("C");
t.Rows[1].Cells[0].Paragraphs.First().Append("D");
t.Rows[1].Cells[1].Paragraphs.First().Append("E");
t.Rows[1].Cells[2].Paragraphs.First().Append("F");
// Insert the Table into the document.
document.InsertTable(t);
document.Save();
}// Release this document from memory.
어떻게 DOCX와 테이블에 텍스트의 수직 방향을 설정하는 아래의 IMAG
그리고, 보이는 문서를 생성합니다 위의 코드? 텍스트 방향은 오른쪽에서 왼쪽으로 또는 그 반대로 만 이루어집니다.
tablePlan.Rows[0].Cells[1].Paragraphs.First().Direction = Direction.LeftToRight;
아래에서 위로 올려 놓는 방법?
그런데 이미지는 어디에 있습니까? –
그림이 추가되었습니다. – arsenium