print2flash 4.0版本选择,用过的指导一下

lyflcear 2015-11-04 03:36:13
在windows2008服务器的环境中,配置完print2flash和组件服务后。用控制台来自动执行转换,不知道选择专业版能不能实现以下的程序。服务版本的有点太贵了。

public bool Convert(string InputFileName)
{
try
{
System.Console.WriteLine(InputFileName);
Print2Flash4.Server2 p2fServer = new Print2Flash4.Server2();
p2fServer.DefaultProfile.InterfaceOptions = 4153342;
p2fServer.DefaultProfile.ProtectionOptions = (int)Print2Flash4.PROTECTION_OPTION.PROTENAPI;
p2fServer.DefaultProfile.DocumentType = Print2Flash4.DOCUMENT_TYPE.FLASH;
p2fServer.DefaultBatchProcessingOptions.GenerateExternalViewer = true;
p2fServer.DefaultBatchProcessingOptions.BeforePrintingTimeout = 120000;//设置执行过期时间为2分钟
p2fServer.DefaultBatchProcessingOptions.ExcelOptions.SkipEmptySheets = true;
p2fServer.ConvertFile(InputFileName, InputFileName + ".swf", null, null, null);
return true;
}
catch (Exception ex)
{
string write = InputFileName + ",0,1,0," + DateTime.Now.ToString();
SysLog sl = new SysLog();
sl.WriteLine(write);
sl.WriteLine(ex.ToString());
return false;
}
}
...全文
507 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lyflcear 2015-11-05
  • 打赏
  • 举报
回复
已经得到国外的回复 Thank you for contacting Print2Flash Support! It seems you need to use Print2Flash OLE Automation API. However, it is not available in Pro mode. You need to obtain a Server type of license.

4,819

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧