Jedidia
asked on
Microsoft Office Word document - Bullets
I generate a list of bullets from the below code and add it to a word document.
The result should be a nice clean list of bullets.
I am getting a rouge bullet on the top?
Why is this?bad.jpg
string[] arrBullets = new string[]
{
"ASASDFSFSFSFSDF",
"DFSAFSAFSDFDSDDFSDAFDSAFDSA",
"KLUIKKYKYKYK",
"HGNHGHTEEREW",
"DFEWFEQWFEQW",
"FASDAQDQDQFQWF:"
};
// Insert NOTES After BITMAP.
Word.Paragraph oPara5;
oPara5 = word_doc.Content.Paragraphs.Add(ref oMissing);
Paragraph assets = word_doc.Content.Paragraphs.Add();
assets.Range.ListFormat.ApplyBulletDefault();
for (int arryi = 0; arryi < (arrBullets.Length - 1); arryi++)
{
assets.Range.InsertBefore(arrBullets[arryi] + Environment.NewLine);
}
assets.Range.InsertBefore(arrBullets[arrBullets.Length - 1]);
oPara5.Format.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft;
oPara5.Range.InsertParagraphAfter();
The result should be a nice clean list of bullets.
I am getting a rouge bullet on the top?
Why is this?bad.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
no points: rouge is french for the colour red what you meant was rogue
ASKER
Nirmalan - Thanks!
David Johnson - Also thank you for correcting my grammar.
David Johnson - Also thank you for correcting my grammar.