asp.net使用FlashPrinter 生成SWF文件问题

随心录123 随心录123 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
说明:本地运行一切正常。可以生成。发布到服务器2003上面 文件上传可以,但是SWF文件并没有生成。也没有报错。
查了以下资料 设置过了还是不行
在Windows xp系统下请把aspnet账号(如果是vista,则是networkservice)添加至administrators组,并重启iis admin服务。
在 windows server 2003下不用说了吧。一样是 networkservice 并重启iis admin服务



 public void shengSwf(string a, string b)
{



Process process = new Process(); //创建进程对象
//try
//{
ProcessStartInfo startInfo = new ProcessStartInfo();
string paperroot = @"F:\FlashAnzhuang\FlashPrinter.exe";//@"F:\FlashAnzhuang\FlashPrinter.exe";
string docFile = Server.MapPath("Files\\" + a);
string swfFile = Server.MapPath("Files\\" + b);

startInfo.FileName = paperroot;
startInfo.Arguments = docFile + " -o " + swfFile;
startInfo.UseShellExecute = false; //不使用系统外壳程序启动
startInfo.RedirectStandardInput = false; //不重定向输入
startInfo.RedirectStandardOutput = false; //重定向输出
startInfo.CreateNoWindow = true; //不创建窗口
process.StartInfo = startInfo;

process.Start();


Response.Write("已经提交生成。<br />");
Response.Write(paperroot + "<br />" + docFile + " = " + swfFile);
//}
//catch (Exception ex)
//{
// Response.Write(ex.Message);
//}
//finally
//{
if (process != null)
process.Close();

// Response.Write("<br />finally");
//}



}
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
随心录123
.NET社区 62,275 成员 668,968 内容