您好,您的Demo有三个问题。
一,您拼接的json有错误,exportFileType是个string,需要加双引号
string postData = "{" + "\"spread\":" + spread + "," + "\"exportFileType\":\"" + exportFileType + "\"," + "\"excel\":" + excel + "}";//+ "," + "\"exportFileName\":" + exportFileName +
二。 服务没有添加spread授权文件,需要在\Properties 下添加 licenses.licx,这个安装说明里有
三,服务文件路径使用有问题,这个您需要使用其他方式
string fileFullPath = System.Web.HttpContext.Current.Server.MapPath("~/Template");
最后您的ProcessRequest并没有返回response。
|