0
내 요구 사항에서 단어 문서의 섹션에있는 특정 단락을 반복하고 싶습니다. 여기 워드 문서ASPOSE.DLL을 사용하여 섹션에있는 단락을 반복하는 방법
#Section Start
1) TO RECEIVE AND ADOPT FINANCIAL STATEMENTS FOR THE YEAR ENDED [FYE]
a.That the Financial Statements of the Company for the financial year ended [FYE] together with the Director(s)' Report and Statement thereon be hereby received and adopted.
b. Second paragraph.
c. Third paragraph.
#Section End
이하 나는 아래의 코드
// Copy all content including headers and footers from the specified
//pages into the destination document.
ArrayList pageSections = finder.RetrieveAllNodesOnPages(1, doc.Sections.Count, NodeType.Section);
System.Data.DataTable dt = GetDataTable(); //Sample DataTable which is having Keys and Values
int sectionCount = 0;
foreach (Section section in pageSections)
{
NodeCollection paragraphs = section.GetChildNodes(NodeType.Paragraph, true);
for (int i = 0; i < paragraphs.Count; i++)
{
string text = paragraphs[i].Range.Text;
}
}
를 바랍니다 시도 3 회
에 "A"지점을 반복합니다 같은 부분에서 우리가 단락을 가지고, 섹션으로 나누어 단락을 반복하는 방법을 알려주십시오.