请问高手,如何用c#将ppt文件导出为html文件
请问高手,如何用c#将ppt文件导出为html文件
string strFile = "e:\\test.ppt";
FileStream fs = new FileStream(strFile, FileMode.Open);
byte[] bytes = new byte[(int)fs.Length];
fs.Read(bytes, 0, bytes.Length);
fs.Close();
Response.ContentType = "application/msword";
Response.AddHeader("Content-Disposition", "attachment;filename=" & strFile);
Response.BinaryWrite(bytes);
Response.End();
[此贴子已经被作者于2005-4-16 11:51:10编辑过]