Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am working on word adddin c# to set the following style for paragraph in word document.

I have the following code:

C#
object oStyle = "Para";
((Word.Style)WordDoc.Application.Selection.Range.ParagraphStyle).set_NextParagraphStyle(ref oStyle);



using the code i am getting two lines in word document,an empty paragraph is inserted,how to get rid of this problem.please provide me with a solution.





Thanks
Posted
Comments
ZurdoDev 14-May-14 10:28am    
Record a macro of what you want to happen and you'll see the code you need.
gggustafson 15-May-14 12:50pm    
+5

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