1

I have a problem by converting a powerpoint presentation to video.

I know that I can use the interrop library but my problem is that office can not be stable on an application server side (see: http://support.microsoft.com/kb/257757)

Application ppApp = new Microsoft.Office.Interop.PowerPoint.Application();
Microsoft.Office.Interop.PowerPoint.Presentations oPresSet = Presentations;
Microsoft.Office.Interop.PowerPoint._Presentation oPres = Open(OriginalFile,MsoTriState.msoFalse, MsoTriState.msoTrue, MsoTriState.msoFalse);
try
{
    oPres.CreateVideo(exportName);
    oPres.SaveAs(String.Format(exportPath, exportName),PpSaveAsFileType.ppSaveAsWMV, MsoTriState.msoCTrue);
    waitingForPowerPointConversion(oPres);
}

How can I do if I want to allow my website to convert a powerpoint uploaded by the user in video by my server?

Thanks for help

MrDSG
  • 11
  • 2
  • Many of the caveats in that article relate to letting outsiders run the office app on your server; they're not relevant when it's your own code automating the app. Some of the other problems relate more to Word/Excel, which allow multiple running instances of themselves. PowerPoint doesn't. You have to be sure not to try to convert File B while PPT is still busy with File A but otherwise, no issues with multiple instances. There are a few other issues, none insurmountable with running PPT on the server. – Steve Rindsberg Aug 30 '13 at 21:43

0 Answers0