读书人

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

发布时间: 2012-04-17 15:06:33 作者: rapoo

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 吗?
[解决办法]

读书人网 >asp.net

热点推荐