Hi
I have set of values like Report1,Report2,Report3
I need to display this as bullet lines in word document like
.Report1
.Report2
.Report3
Hi Ajeesh,
Thank you for inquiry. Yes, you can achieve this by following code snippet. For more details please also visit documentation here.
Document doc = new Document();
// Create a list based on one of the Microsoft Word list templates.
Aspose.Words.Lists.List list = doc.Lists.Add(ListTemplate.NumberDefault);
// Completely customize yet another list level.
ListLevel level1 = list.ListLevels[0];
level1.Alignment = ListLevelAlignment.Right;
level1.NumberStyle = NumberStyle.Bullet;
level1.Font.Name = "Wingdings";
level1.Font.Color = Color.Blue;
level1.Font.Size = 24;
level1.NumberFormat = "\xf0af"; // A bullet that looks like some sort of a star.
level1.TrailingCharacter = ListTrailingCharacter.Space;
level1.NumberPosition = 50;
// Now add some text that uses the list that we created.
// It does not matter when to customize the list - before or after adding the paragraphs.
DocumentBuilder builder = new DocumentBuilder(doc);
builder.ListFormat.List = list;
builder.Writeln("The quick brown fox...");
builder.Writeln("The quick brown fox...");
builder.ListFormat.ListOutdent();
builder.Writeln("The quick brown fox...");
builder.ListFormat.RemoveNumbers();
builder.Document.Save("c:/temp/out.doc");
Hope this will help.