Click here to Skip to main content
15,889,804 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could you let me know how to add bullet and numbering in a word document using word automation?
I looped through all properties of Range (Document.Range, Selection.Range, etc) without finding anything related to Bullet and numbering.
Thank you!
Posted
Updated 22-Dec-11 16:02pm
v2
Comments
Ganesan Senthilvel 22-Dec-11 22:53pm    
Could you elaborate your scenario?
supernorb 23-Dec-11 1:11am    
OK, if you have worked with Word Automation, I think you would figure out what I want. For example, I add a paragraph to the current document as Paragraph P = MyDoc.Paragraphs.Add(someBookmarkedRange); P.Range.Text = "someText"
The code above will add a paragraph with content of "someText" to MyDoc at the bookmarked range (the specifed location in the document MyDoc), but now I want to add some bullet and nunbering to that new paragraph like as you select that paragraph and choose from bullet and numbering style menu in Word Interface.
Hope you understand my scenario.
Thank you!

1 solution

 
Share this answer
 
v2
Comments
supernorb 23-Dec-11 0:59am    
Your first link leads me to another solution than using Word Automation, it seemed that using Word Automation is too complex so that an expert in StackOverFlow suggested another way using Open XML and I have known of it but I will use it in my later projects, now I want to use Word Automation only.
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900