如何使用c#Interop word为word文档中的段落设置以下样式 [英] How to set the following style for paragraph in word document using c# Interop word
本文介绍了如何使用c#Interop word为word文档中的段落设置以下样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用word adddin c#为word文档中的段落设置以下样式。
我有以下代码:
Hi,
I am working on word adddin c# to set the following style for paragraph in word document.
I have the following code:
object oStyle = "Para";
((Word.Style)WordDoc.Application.Selection.Range.ParagraphStyle).set_NextParagraphStyle(ref oStyle);
使用代码我在word文档中得到两行,插入一个空段,如何摆脱这个问题。请提供我有一个解决方案。
谢谢
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
推荐答案
这篇关于如何使用c#Interop word为word文档中的段落设置以下样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文