首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

c# 将 PDF文件转换为SWF文件的有关问题

2012-05-21 
c# 将 PDF文件转换为SWF文件的问题string appPath @C:\Program Files\SWFTools\pdf2swf.exe string o

c# 将 PDF文件转换为SWF文件的问题
string appPath = @"C:\Program Files\SWFTools\pdf2swf.exe ";
  string outPath = Server.MapPath("~/Templates/Services.pdf");
  string swfPath = Server.MapPath("~/Templates/Services.swf");
  string param = string.Format("{0} -o {1}", outPath, swfPath); // 合并需要的参数信息。
  System.Diagnostics.Process p = new System.Diagnostics.Process();
  p.StartInfo.FileName = appPath; // 赋值进程要执行的应用程序。
  p.StartInfo.Arguments = param; // 赋值应用程序可用参数。
  p.StartInfo.UseShellExecute = false;
  p.StartInfo.RedirectStandardInput = false;
  p.StartInfo.RedirectStandardOutput = false;
  p.StartInfo.RedirectStandardError = false;
  p.StartInfo.CreateNoWindow = true; // 是否创建显示窗口。
  try
  {
  bool IsStart = p.Start(); // 开始执行程序,如果执行成功返回True,否则False。
  p.WaitForExit(); // 等待关联进程退出。
  p.Close(); // 关闭进程。
  }
  catch (Exception ex)
  {
  throw ex;
  }
  Response.Write("完成。");  



此代码执行不报错,但没创建SWF文件,不知道为什么,有哪位高手能帮我指点?

[解决办法]
不懂,帮顶。。别沉了
[解决办法]
帮顶。。。。
[解决办法]

探讨

FlashPaper

C# code

public static void ConvertPdfToSwf(HttpRequest reqeust, String styFileName, String[] dataFileNames, String outputFileFullName)
{
try
{ String flashPrinter = String.Concat(……

热点排行