C#: Online Guide
How To: Word SDK
Footnote & Endnote Processing
Footnote & Endnote Processing
  |  
Home ›› XDoc.Word ›› C# Word: Process Footnote & Endnote

C# Word - Footnote & Endnote Processing in C#.NET


Provide Variety of  C# Methods to Process Footnote & Endnote in Word Document




Overview



C#.NET Word document footnote & endnote processing Interface control (XDoc.Word).//More TODO is a tool which allow users to process footnote and endnote in an existing or new Word document. add pages to pdf c#, itextsharp vb.net pdf to text, itextsharp replace text in pdf c#, convert pdf to tiff using itextsharp c#, c# convert png to pdf, free code 39 barcode generator c#.


Related .net document control helps:
c# asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
c# asp.net mvc document viewer: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
c# asp.net tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
c# asp.net word document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net annotate pdf using c#: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#




C# DLLs: Word Footnote and Endnote Processing



Add references: pdf to jpg vb.net, open pdf from windows form c#, c# redact pdf, read pdf text vb.net, c# pdf stamp, rotate pdf pages using c#, c# draw pdf.


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Word;




Create Footnote & Endnote



The following demo code describe how to create a footnote and endnote in current paragraph. asp.net view excel in browser, pdf viewer in asp.net web application, asp.net preview pdf, show image in datalist asp.net c#, mvc display pdf in partial view, asp net replace text from pdf javascript, pdf editor asp.net.




String docFilePath = @"";
//Open the document
DOCXDocument document =DOCXDocument.Open(docFilePath);
//Get the main document
IDocument doc = document.GetDocument();
//Create a empty paragraph in body
IParagraph paragraph = doc.CreateParagraph();
//Before create footnote and endnote,run must created in paragraph
IRun run = paragraph.CreateARun();
run.CreateText("This is a run created for footnote and end note");
//Create a footenote for paragraph
IFootNote footnote = paragraph.CreateFootNote(0);
//More TODO:May create some block in footnote
//Create an endnote for paragraph
IEndNote endnote = paragraph.CreateEndnote(0);
//More TODO:May create some block in endnote

//Save the document
doc.Save(@"");





Create or Add Paragraph in Footnote & Endnote



This is a C# sample code which illustrates how to create paragraph in the footnote.




String docFilePath = @"";
//Open the document
DOCXDocument document = DOCXDocument.Open(docFilePath);
//Get the main document
IDocument doc = document.GetDocument();
//Create a paragraph for document
IParagraph paragraph = doc.CreateParagraph();
//Create a run for paragraph
IRun run = paragraph.CreateARun();
//Create text for run
run.CreateText("Paragrah for footnote and endnote");

//Just Show how to create a footnote and create paragraph for it.
//1.Create a footnote
IFootNote footnote = paragraph.CreateFootNote(0);
//2.Create a paragraph for footnote
IParagraph footnotePara = footnote.CreateParagraph();
//3.Create a Run for paragraph in footnote
IRun footnoteRun = footnotePara.CreateARun();
//4.Create text for run
footnoteRun.CreateText("Text created in footnote!");
//MORE TODO:
//
//
doc.Save(@"");





Create or Add Table in Footnote & Endnote



The following demo code shows how to create table in the footnote.




String docFilePath = @"";
//Open the document
DOCXDocument document = DOCXDocument.Open(docFilePath);
//Get the main document
IDocument doc = document.GetDocument();
//Create a paragraph for document
IParagraph paragraph = doc.CreateParagraph();
//Create a run for paragraph
IRun run = paragraph.CreateARun();
//Create text for run
run.CreateText("Paragrah for footnote and endnote");

//Just Show how to create a footnote and create table for it.
//1.Create a footnote
IFootNote footnote = paragraph.CreateFootNote(0);
//2.Create a table with 3 culumns and 3 rows for footnote
ITable footnoteTable = footnote.CreateTable(3, 3);
//MORE TODO:
//
//
doc.Save(@"");