//first line Word.Paragraph paragraph; paragraph = oDoc.Content.Paragraphs.Add(ref oMissing); Word.Range para = paragraph.Range; para.Font.Size = 10; para.Font.Name = "Arial"; para.Font.Bold = 1; para.Text = "\r\n"; paragraph.Format.SpaceAfter = 24; para.InsertParagraphAfter(); para.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter; ///////////////Here is the line of 10pt font //next line Word.Paragraph oPara1; oPara1 = oDoc.Content.Paragraphs.Add(ref oMissing); Word.Range rng = oPara1.Range; rng.Font.Size = 14; rng.Font.Name = "Arial"; rng.Font.Bold = 1; rng.Text = "SOCIAL ASSESSMENT"; oPara1.Format.SpaceAfter = 24; //24 pt spacing after paragraph. rng.InsertParagraphAfter(); rng.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)