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

解决方案 »

  1.   

    我在配置的映射里加上 .DOCX 路径是 c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll 
    确认文件是否存在勾去掉了
    又把NETWORK_SERVICE 加到administrators下 
    但是不行
      

  2.   

    不是这加映射,是IIS服务器-属性-MIME 看下那有没有docx的映射 
      

  3.   

    .docx
    application/vnd.openxmlformats-officedocument.wordprocessingml.document
    这是我这里的配置
      

  4.   

    是IIS6  谢谢边城  我再试试~
      

  5.   

    好像不行~~ 我运行的时候看了一下进程 转换DOCX时候 倒是会打开winword.EXE的进程 
    但是就是一直卡着 我把进程结束 就会执行转换之后的代码了
      

  6.   

    那建议你重新装下IIS,或是重新装下word 2007
      

  7.   

    我看了一下进程,
    正常情况是会打开2个FlashPaper。exe进程和一个 WINWORD.EXE
    有问题的时候只打开1个FlashPaper.EXE和一个WINWORD.EXE
      

  8.   

    LZ解决了没?  碰到相同问题了,我的是发布到IIS7.5上后,进网站,到观看文档页面,直接就没有反映,好像没调用到,进程也没有, 是怎么回事?
      

  9.   


    IIS7,windows2008下面你成功了马? 成功的话怎么解决的?