We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Replace bookmark with some text AND a 2 column bullet list

I am trying to replace a bookmark in a Word document to contain a heading, some text, and then a 2 column bullet list. I think the bullet list is messing me up. I’m having all sorts of problem getting it to format properly.

I’m basically doing this (see below). Things don’t seem to be working properly and if I add the heading and text before adding the bullet list, that gets 2 columns as well…but i’ll bet that’s because those pieces need to be in separate paragraphs to have different formatting. Any help or advice would be much appreciated.

    a_DocumentBuilder.MoveToBookmark("some name here");

    a_DocumentBuilder.PageSetup.TextColumns.SetCount(2);

    a_DocumentBuilder.ListFormat.List = a_DocumentBuilder.Document.Lists.Add(Aspose.Words.Lists.ListTemplate.BulletDisk);
    a_DocumentBuilder.ListFormat.ListLevelNumber = 0;


    foreach (var improvementProgram in colImprovementPrograms)
    {
      a_DocumentBuilder.InsertHyperlink(improvementProgram.Name, improvementProgram.URL, false);

      a_DocumentBuilder.InsertBreak(BreakType.ColumnBreak);
    }

@toddn

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.