62,041
社区成员
发帖
与我相关
我的任务
分享
public void ConvertPdfToSwf(string inFilename, string swfFilename)
{
try
{
//string flashPrinter = Server.MapPath(@"..\..\FlashPaper 2\FlashPrinter.exe");
string flashPrinter = string.Concat(AppDomain.CurrentDomain.BaseDirectory, @"systemInfo\FlashPaper2\FlashPrinter.exe");
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(flashPrinter);
startInfo.Arguments = string.Concat(Server.MapPath(inFilename), " -o ", Server.MapPath(swfFilename));
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo = startInfo;
process.Start();
process.WaitForExit();
process.Close();
}
catch (Exception ex)
{
throw ex;
}
}