首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

FlashPaper发布到IIS之后 只能转换doc格式解决办法

2012-04-17 
FlashPaper发布到IIS之后 只能转换doc格式C# codestring FlashPaperPath @D:\flashpaper\FlashPaper2.2

FlashPaper发布到IIS之后 只能转换doc格式

C# code
    string FlashPaperPath = @"D:\flashpaper\FlashPaper2.2\FlashPrinter.exe ";                Process p = new Process();                p.StartInfo.FileName = "cmd";                p.StartInfo.UseShellExecute = false;                p.StartInfo.RedirectStandardInput = true;                p.StartInfo.RedirectStandardOutput = true;                p.StartInfo.RedirectStandardError = true;                p.StartInfo.CreateNoWindow = true;                p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;                p.Start();                string strOutput = null;                string s = FlashPaperPath + (fromPath) + " -o   " + (toPath);                p.StandardInput.WriteLine(s);                p.StandardInput.WriteLine("exit");                strOutput = p.StandardOutput.ReadToEnd();                Console.WriteLine(strOutput);                p.WaitForExit();                p.Close();                if (IsDelete)                {                    System.IO.File.Delete(fromPath);                }


使用VS2008 调试的时候,可以转换 office2003 和office 2007的版本文件 包括 pptx xlsx docx doc ppt 等等
但是发布到IIS下之后 就不识别ppt pptx docx了 只认得doc

[解决办法]
添加这些扩展名的映射
[解决办法]
IIS6 吗?
[解决办法]

热点排行