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

asp.net Office文件在线转换swf的问题
asp.net如何将office转换为swf格式,哪位高手指点一下,最好有例子

------解决方案--------------------
我用VC写的服务程序来转换,使用了FlashPaper2
------解决方案--------------------
用VC写的服务程序来转换,使用了FlashPaper2 
 

------解决方案--------------------

public void ConvertToSWF(string oldFile, string swfFile)
        {
            System.Diagnostics.Process pc = new System.Diagnostics.Process();
            // pc.StartInfo.FileName = "cmd";
            pc.StartInfo.FileName = @"F:\Two\Demo\Demo\FlashPaper\FlashPrinter.exe";
            pc.StartInfo.Arguments = string.Format("{0} -o {1}", oldFile, swfFile);
            pc.StartInfo.CreateNoWindow = true;
            pc.StartInfo.UseShellExecute = false;
            pc.StartInfo.RedirectStandardInput = true;
            pc.StartInfo.RedirectStandardOutput = true;
            pc.StartInfo.RedirectStandardError = true;

            pc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;


            pc.Start();
            pc.WaitForExit();
            pc.Close();
           // pc.Dispose();
        }