计算.ppt文件中的行数和单词数 [英] Count no.of lines and words in a .ppt file

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

问题描述



我的要求是我需要计算.ppt文件中包含的单词和行数.我正在使用Windows应用程序.我已经获取了.ppt文件中幻灯片的数量.我正在使用microsoft.office.interop .PowerPoint.Plz可以为我提供相同的任何解决方案.在此先感谢您,并等待您的快速响应.

问候,
sachin

解决方案

Slide类将具有一些用于实现此目的的属性. microsoft.com/en-us/library/microsoft.office.interop.powerpoint.presentationclass.builtindocumentproperties.aspx">PresentationClass.BuiltInDocumentProperties [ 解决方案

Slide class will have some properties for achieving this


The PresentationClass.BuiltInDocumentProperties[^] should contain the number of words. However, I''n not sure if the number of lines is recorded in properties so you may have to iterate through the texts in the slides and search for line breaks.


这篇关于计算.ppt文件中的行数和单词数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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