如何实现将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();
谢谢了