locked
Microsoft.Office.Interop.Word change bullet style RRS feed

  • Question

  • hi im using Microsoft.Office.Interop.Word,

    i used below code to put BUllet on the word document

    wrdApp.Selection.Range.ListFormat.ApplyBulletDefault

    its working fine only, but my doubt is how to change the bullet style because right now its showing a simple Dot bullet only.

    experts please help  me


    Thanks In Advance, Jeyaseelan
    Thursday, January 5, 2012 10:39 AM

Answers

  • i got the solution

    ListGallery ls = wrdApp.ListGalleries[WdListGalleryType.wdBulletGallery];

                object o = 5;

                ListTemplate lt = ls.ListTemplates.get_Item(ref o);

     

                wrdApp.Selection.Range.ListFormat.ApplyListTemplate(lt, ref oMissing, ref oMissing, ref oMissing);


    Thanks In Advance, Jeyaseelan
    • Marked as answer by Jey-YoYo Thursday, January 5, 2012 11:34 AM
    Thursday, January 5, 2012 11:34 AM

All replies

  • hi any one could help me....!
    Thanks In Advance, Jeyaseelan
    Thursday, January 5, 2012 11:25 AM
  • i got the solution

    ListGallery ls = wrdApp.ListGalleries[WdListGalleryType.wdBulletGallery];

                object o = 5;

                ListTemplate lt = ls.ListTemplates.get_Item(ref o);

     

                wrdApp.Selection.Range.ListFormat.ApplyListTemplate(lt, ref oMissing, ref oMissing, ref oMissing);


    Thanks In Advance, Jeyaseelan
    • Marked as answer by Jey-YoYo Thursday, January 5, 2012 11:34 AM
    Thursday, January 5, 2012 11:34 AM