asp.net使用FlashPrinter 生成SWF文件问题
说明:本地运行一切正常。可以生成。发布到服务器2003上面 文件上传可以,但是SWF文件并没有生成。也没有报错。
查了以下资料 设置过了还是不行
在Windows xp系统下请把aspnet账号(如果是vista,则是networkservice)添加至administrators组,并重启iis admin服务。
在 windows server 2003下不用说了吧。一样是 networkservice 并重启iis admin服务
查了以下资料 设置过了还是不行
在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");
//}
}
...全文
相关推荐
asp.net 多格式文本转swf
asp.net 多格式文本转swf word excel ppt jpg 等等文件转换成swf Demo 和 FlashPaper
使用FlashPaper在线转换.doc为.swf
Flashpaper的使用相信大多数人都知道,这里的Demo是用于在线转换 .doc文件转换为 .swf的flash文件。
asp.net在线预览
将doc、xls、Txt等文档转换为类似于百度文库的形式,把文档转换为Flash,通过Flash播放器进行浏览
用flashprinter实现office文档在线转flash
用flashprinter实现office文档在线转flash 首先安装flashpaper,然后用vs2008打开网站既可以。 只是弄了个简单的例子,具体请自己摸索 如遇到不能转换,请先确定你的flashpaper是否正常;另外FlashPrinter.exe和那两个dll文件需要从flashpaper目录中复制过来。
word在线阅读
最近因有个案子需要把上传的word在网页上在线阅读,但不能下载。所以就在网上找了找资源,写了这个在线阅读类似百度文库的功能。 word档案上传,在线阅读,类似与百度文库的在线阅读。 思路:先把word专程pdf档案,然后再把pdf转程swf格式,在页面播放出来。



