计算office2003中的段落数 [英] Count number of paragraphs in office2003

查看:96
本文介绍了计算office2003中的段落数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想在任何形式的出版商中使用段数。我正在使用Microsoft Publisher 2003和C#.Net 4.0。使用过的Interop办公室库。

我在MS_Publisher 2007中使用以下方法做了同样的事情,

Hi,

I want a paragraph count in any shape of publisher. I am working on Microsoft Publisher 2003 and C#.Net 4.0. Used Interop office libraries.
I have done same thing in MS_Publisher 2007 by using following method,

int paraCount = shapeTextFrame.TextFrame.TextRange.ParagraphsCount;





我没有得到相同的方法或在2003办公室做同样的办法。



请发送你的建议。



I am not getting equivalent method or any workaround to do the same in 2003 office.

Please send your suggestions.

推荐答案

我一直在访问此链接: MS Project 2003对象 [ ^ ]我需要注意到我确实没有找到任何有用的东西;(



我有个主意。使用执行... while 循环。增加长度参数直到选择方法将返回错误;)
I've been visit this link: MS Project 2003 objects[^] and i need to notice that i did found nothing useful ;(

I have an idea. Use Do...While loop. Increase length parameter till Select method will return the error ;)


这篇关于计算office2003中的段落数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆