文檔半島外圍網(wǎng)上直營>>Aspose中文文檔>>在 NPOI 中使用頁腳
                在 NPOI 中使用頁腳
Aspose.Words是一種高級Word文檔處理API,用于執(zhí)行各種文檔管理和操作任務(wù)。API支持生成,修改,轉(zhuǎn)換,呈現(xiàn)和打印文檔,而無需在跨平臺應(yīng)用程序中直接使用Microsoft Word。
Aspose API支持流行文件格式處理,并允許將各類文檔導(dǎo)出或轉(zhuǎn)換為固定布局文件格式和最常用的圖像/多媒體格式。
Aspose.Words
Document wordDocument = new Document("Convert Word Doc to Other Formats.doc");
HeaderFooterCollection footers = wordDocument.FirstSection.HeadersFooters;
foreach (HeaderFooter footer in footers)
{
if (footer.HeaderFooterType == HeaderFooterType.FooterFirst || footer.HeaderFooterType == HeaderFooterType.FooterPrimary || footer.HeaderFooterType ==
HeaderFooterType.FooterEven)
Console.WriteLine(footer.GetText());
}
	點擊復(fù)制
NPOI
XWPFDocument wordDocument = new XWPFDocument(new FileStream("Working with Footers.doc", FileMode.Open));
IList<XWPFFooter> footers = wordDocument.FooterList;
foreach (XWPFFooter footer in footers)
{
Console.WriteLine(footer.Text);
}
	點擊復(fù)制
下載運行代碼
下載示例代碼

 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網(wǎng)安備
            50010702500608號
渝公網(wǎng)安備
            50010702500608號
             
            
 客服熱線
客服熱線