How to read a PPT file in ASP.NET MVC?

前端 未结 2 1698
忘掉有多难
忘掉有多难 2021-01-14 22:03

I have PPT file on desktop named as \"slide.ppt\". I want to read all slides of this PPT file in my ReadSlide function as below

public void Read         


        
2条回答
  •  情歌与酒
    2021-01-14 22:13

    If it was an PPTX, you could read it using OpenXML. Since you specifically asked for PPT, it is a little harder.

    You shouldn't use Automation / Interop for sure, since it isn't supported in a server environment.

    That means you have to use third-party tools to read the PPT. If you google for them, you will see a long list of them. I have never worked with it, but Aspose seems to do the job very well.

提交回复
热议问题