在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
try { string flashPrinter = ConfigurationManager.AppSettings["FlashPaperPath"].ToString(); string _oldFilePath = MapPath(txtFilePath.Text.Trim()); string _swfFilePath = MapPath(txtFilePath.Text.Trim().Replace(BaseLib.GetFileExt(txtFilePath.Text.Trim()), ".swf")); System.Diagnostics.Process pss = new System.Diagnostics.Process(); pss.StartInfo.CreateNoWindow = false; pss.StartInfo.FileName = flashPrinter; pss.StartInfo.Arguments = string.Format("{0} {1} -o {2}", flashPrinter, _oldFilePath, _swfFilePath); pss.Start(); while (!pss.HasExited) { continue; } lblView.Text = "成功!"; } catch (Exception ex) { lblView.Text = ex.ToString(); } |
请发表评论