日期:2014-05-19  浏览次数:20499 次

如何实现将word和ppt文件自动转换成html网页格式呢?急!
请问asp.net如何实现将上传的word或ppt文档,自动转换成html网页格式呢?

谢谢!

------解决方案--------------------
asp.net将word转换为html保存

http://blog.csdn.net/JOHNCOOLS/archive/2006/10/12/1331071.aspx


------解决方案--------------------
ppt


PowerPoint.Application ppt = new PowerPoint.Application();
Microsoft.Office.Core.MsoTriState m1 = 0;
Microsoft.Office.Core.MsoTriState m2 = 0;
Microsoft.Office.Core.MsoTriState m3 = 0;
PowerPoint.Presentation pp = ppt.Presentations.Open(this.FilePath,m1,m2,m3);
pp.SaveAs(this.SavePath + this.FileName + ".html ",PowerPoint.PpSaveAsFileType.ppSaveAsHTML,Microsoft.Office.Core.MsoTriState.msoTriStateMixed);
pp.Close();

------解决方案--------------------
ppt 


PowerPoint.Application ppt = new PowerPoint.Application(); 
Microsoft.Office.Core.MsoTriState m1 = 0; 
Microsoft.Office.Core.MsoTriState m2 = 0; 
Microsoft.Office.Core.MsoTriState m3 = 0; 
PowerPoint.Presentation pp = ppt.Presentations.Open(this.FilePath,m1,m2,m3); 
pp.SaveAs(this.SavePath + this.FileName + ".html ",PowerPoint.PpSaveAsFileType.ppSaveAsHTML,Microsoft.Office.Core.MsoTriState.msoTriStateMixed); 
pp.Close(); 


谢谢了