日期:2014-05-17  浏览次数:20438 次

调用FlashPaper出错
public static string ConvertSwf(string fileName)
  {
  using (Process p = new Process())
  {
  string fppath = @"D:\FlashPaper2.2\FlashPrinter.exe";
  string docUrl = HttpContext.Current.Server.MapPath("~/FlexPaper/Doc/");
  string savePath = HttpContext.Current.Server.MapPath("~/FlexPaper/Swf/");

  string sourcePath = @"""" + docUrl + fileName + @"""";
  string targetPath = @"""" + savePath + fileName.Substring(0, fileName.LastIndexOf(".")) + ".swf" + @"""";
  string param = fppath + " " + sourcePath + " -o " + targetPath;

  ProcessStartInfo psi = new ProcessStartInfo();
  psi.FileName = "C:\\WINDOWS\\system32\\cmd.exe";
  psi.Arguments = param;
  psi.CreateNoWindow = true;

  p.StartInfo = psi;
  p.Start();
  p.WaitForExit();
  }
  }
用这个方法进行转换的时候,页面一直显示正在提交状态,不能返回结果,代码有什么问题吗

------解决方案--------------------
http://topic.csdn.net/u/20120717/07/55bb1837-07a7-465b-bc88-895a7c45882a.html