当前位置: 代码迷 >> ASP.NET >> 怎么实现将word和ppt文件自动转换成html网页格式呢?
  详细解决方案

怎么实现将word和ppt文件自动转换成html网页格式呢?

热度:6914   发布时间:2013-02-26 00:00:00.0
如何实现将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 + " ",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 + " ",PowerPoint.PpSaveAsFileType.ppSaveAsHTML,Microsoft.Office.Core.MsoTriState.msoTriStateMixed); 
pp.Close(); 


谢谢了
  相关解决方案