Hi,
After Export to word from application, Can we align paragraph to justify & adjust line spacing of paragraph using code
Thanks
Hi,
After Export to word from application, Can we align paragraph to justify & adjust line spacing of paragraph using code
Thanks
Yes, you can. Please try using the following code:
foreach (Paragraph para in doc.GetChildNodes(NodeType.Paragraph, true){
para.ParagraphFormat.Alignment = ParagraphAlignment.Justify;
para.ParagraphFormat.SpaceBefore = 0;
para.ParagraphFormat.SpaceAfter = 0;
}
Please let us know if we can be of any further assistance.
Thank you awais.hafeez.
Its working !!!