请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

liyx
金牌服务用户   /  发表于:2016-8-25 13:57:48
21#
调试导出的时候,发现如下方法收集到的model.data字符串会出现中文乱码,请问如何设置form参数避免乱码?

/**
* Download file using Spring Controller
*/
@RequestMapping(value = "/export", method = RequestMethod.POST)
public @ResponseBody void Export(HttpServletResponse response, ImportModel model) {
   ExcelIOService service = new ExcelIOService();

   try {
      FileResult result = service.exportFile(model);

      response.setContentType(result.getType());
      response.setHeader("Content-Disposition", result.getContentDisposition().getValue());
      response.setHeader("Content-Length", result.getContentLength());
      IOUtils.copy(result.getIs(), response.getOutputStream());

      response.getOutputStream().flush();
   } catch (IOException ex) {
      logger.error(ex.getMessage(), ex.getStackTrace());
      throw new RuntimeException("IOError writing file to output stream");
   }
}
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-8-26 17:32:23
22#
应该是没有设置编码格式,都同一成utf-8的
回复 使用道具 举报
liyx
金牌服务用户   /  发表于:2016-9-1 13:29:04
23#
dexteryao 发表于 2016-8-26 17:32
应该是没有设置编码格式,都同一成utf-8的

8月份部署的服务,今天用不了了,请问这个GrapeCity.ExcelService 部署到IIS后有授权限制么?
对于已购买开发授权的用户,如何导入授权?
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-9-1 13:44:52
24#
可能您当时部署的还是试用版的,如果您购买了,那么在授权后的开发机器上编译发布然后部署服务器就好了。

不用再服务器安装ExcelIO也不用在服务器授权。
回复 使用道具 举报
weae
注册会员   /  发表于:2016-9-6 11:36:15
25#
那也就是说纯前端想实现excel表格导入的功能是无法实现的是么对于这个版本。
回复 使用道具 举报
Helen
高级会员   /  发表于:2016-9-7 11:24:57
26#
weae 发表于 2016-9-6 11:36
那也就是说纯前端想实现excel表格导入的功能是无法实现的是么对于这个版本。

是的,该功能预计会在11月新版本中发布。
回复 使用道具 举报
1668924561
注册会员   /  发表于:2016-9-19 09:25:16
27#
请问按照示例,后台报错,http://demo.gcpowertools.com.cn refuse,这种拒绝服务的错误,该如何解决?
回复 使用道具 举报
Helen
高级会员   /  发表于:2016-9-19 16:27:46
28#
1668924561 发表于 2016-9-19 09:25
请问按照示例,后台报错,http://demo.gcpowertools.com.cn refuse,这种拒绝服务的错误,该如何解决?

我们demo网站仅用于示例作用,对其稳定性、可用性等不做保证,您需要在自己的机器上面配置Excel I/O服务。
回复 使用道具 举报
1668924561
注册会员   /  发表于:2016-9-20 15:40:59
29#
根据java平台的示例代码,发送http请求之后,返回的httpReponse内容为{"error":"\u0027Body\u0027and\u0027Headings\u0027are expected."},请问正常发送请求后的response是怎么样的,这个问题是是请求参数的问题还是?
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-9-21 10:12:50
30#
您是导入还是导出,如果导入的话是提交一个file 返回json, 导出时提交json返回file
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部