2.写代码
var doc =
@"
C:\A.docx
";
var swf = @" C:\A.swf ";
var paper = @" C:\Program Files\Macromedia\FlashPaper 2\FlashPrinter.exe ";
var process = new Process();
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.FileName = paper;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.Arguments = string.Format( " {0} -o {1} ",doc,swf);
process.Start();
process.WaitForExit();
var swf = @" C:\A.swf ";
var paper = @" C:\Program Files\Macromedia\FlashPaper 2\FlashPrinter.exe ";
var process = new Process();
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.FileName = paper;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.Arguments = string.Format( " {0} -o {1} ",doc,swf);
process.Start();
process.WaitForExit();