日期:2014-05-18  浏览次数:20372 次

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 吗?
------解决方案--------------------