i am reading a docx file with my programm but i want to read numbering of lines or pargrahs
for example
1.1 Microsoft SharePoint 2010
1.1.1 The System shall be implemented using Microsoft SharePoint Server (MOSS) 2010 and shall have all the core features and functionalities of the MOSS 2010 platform.
1.1.2 Where any module or feature described in this document requires a feature or function that is available in MOSS 2010 but which has not been explicitly mentioned, then that requirement is implied.
i want to read paragrah with there no like 1.1 ,1.1.1,1.1.2
please help me its urgent
John GlennPosted Mar 8, 2012, 4:25 AM
you can easily read paragraph's list level number format with this C# / VB.NET Word component.
Here is a sample C# read Word code how to do it:
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Load a document from the file.
var document = DocumentModel.Load("IndentedNumbering.docx", LoadOptions.DocxDefault);
// For each paragraph in the document,
// if paragraph defines a list,
// read its list level number format.
// This will print out: '%1.%1.', '%1.%1.%1.' and '%1.%1.%2.'.
foreach (Paragraph paragraph in document.GetChildElements(true, ElementType.Paragraph))
if (paragraph.ListFormat.IsList)
Console.WriteLine("NumberFormat: {0}", paragraph.ListFormat.ListLevelFormat.NumberFormat);
Jiteendra SampathiraoPosted Aug 23, 2011, 12:29 AM
By using interop services you can achieve and one more way is using OpenXML you can do that...