大家好,我想把pdf转换成swf文件,就在asp.net后台代码中启动了flashpaper进程,但同样的代码在winxp下,好用。但在win2003下,就不好用了。代码如下:
          
      public static void ConvertPdfToSwf(HttpRequest reqeust, String styFileName, String[] dataFileNames, String outputFileFullName)
      {
              try
              {
                 String flashPrinter = String.Concat(AppDomain.CurrentDomain.BaseDirectory, "FlashPrinter.exe");//FlashPrinter.exe
                 System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(flashPrinter);
                 if (String.IsNullOrEmpty(outputFileFullName))
                 {
                    return ;
                 }
                  Int32 intLastDot = outputFileFullName.LastIndexOf(".");
                 //*********Temp Programming****************************************
                  Int32 intLast = outputFileFullName.LastIndexOf("\\");
                  String path = outputFileFullName.Substring(0, intLast);
                  String tempFileName = path + "\\PdfToSwf20080923.pdf";
                 //*****************************************************************
                 String swfFileName = String.Concat(path, "\\PdfToSwf20080923.swf");
                 startInfo.Arguments = String.Concat(tempFileName, " -o ", swfFileName);
                 System.Diagnostics.Process process = new System.Diagnostics.Process();
                 process.StartInfo = startInfo;
                 Boolean isStart = process.Start();
                 process.WaitForExit();
                 process.Close();
            }
              catch(Exception ex)
              {
                throw ex;
              }