Im unable to get the different style of text from word and bulleted list text from word file.
please let me know how read bulleted lists and styles from word file.
Thanks,
Bhushanam
Im unable to get the different style of text from word and bulleted list text from word file.
Hi Bhushanam,
Thanks for your query. Please read following documentation links for your kind reference. Hope this helps you. Let us know, If you have any more queries.
Thanks you for reply.
Hi Bhushanam,
Please use the following code snippet to get the text color, font information. Please read following documentation links for your kind reference.
Document doc = new Document(MyDir + "in.doc");
Node[] paras = doc.GetChildNodes(NodeType.Paragraph, true).ToArray();
foreach (Paragraph para in paras)
{
Node[] runs = para.GetChildNodes(NodeType.Run, true).ToArray();
foreach (Run run in runs)
{
Console.Write(run.Font.Color);
Console.Write(run.Font.Name);
Console.Write(run.Font.Size);
Console.Write(run.Font.Shading.BackgroundPatternColor);
Console.Write(run.Font.Shading.ForegroundPatternColor);
}
}