在C#中获取.doc和.ppt文档的页码 [英] Getting pages number of .doc and .ppt documents in C#

查看:611
本文介绍了在C#中获取.doc和.ppt文档的页码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在搜索可以读取旧Office文档PowerPoint(.ppt)和Word(.doc)的API,以便分别计算幻灯片编号和页码。



最着名的解决方案是使用DSOFile汇编,但它只适用于32位环境,而我正在使用64位一。另外我不能使用Office.Interop,因为我没有安装办公室。



感谢您的帮助。

Hi,

I'am searching for an API that can read old Office documents PowerPoint (.ppt) and Word (.doc) in order to count respectively the slides number and the pages number.

The most known solution is to use DSOFile Assembly but it works only on 32 bits environment while I'am working on a 64 bits one. Also I can't use Office.Interop because I don't have office installed.

Thanks for help.

推荐答案

hi,



https://officeapi.codeplex.com/ [ ^ ]完全符合您的要求。据我所知,它在Office套件中新添加了PPT处理功能,因此您可以同时管理.ppt和.doc文件。您可以构建任何类型的32位或64位.NET应用程序,包括C#,VB.NET ,ASP.NET,Web服务和WinForms for .NET Framework版本从2.0到4.5,没有Office Automation。



希望它有所帮助。


https://officeapi.codeplex.com/[^]perfectly meet your requirements.As far as I know, it has newly add PPT processing feature into its Office suite case so you can mannage both .ppt and .doc file.And you are allowed to build any type of a 32-bit or 64-bit .NET application including C#, VB.NET, ASP.NET, Web Services and WinForms for .NET Framework version from 2.0 to 4.5 without Office Automation.

hope it helps.


这篇关于在C#中获取.doc和.ppt文档的页码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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