帆软报表的导出形式有两种形式。
第一种是通过url方式,跟预览报表一样,只是会在url上多加一个format的参数,比如,预览报表的url为:http://localhost:8075/webroot/decision/view/report?viewlet=json_export.cpt,再后面加一个format参数,http://localhost:8075/webroot/decision/view/report?viewlet=json_export.cpt&format=json表示这个请求会将报表的内容以JSON的格式返回。format的值可以有下列格式:
private static final String FORMAT_EXCEL = "excel";
private static final String FORMAT_EXCEL_03 = "excel03";
private static final String FORMAT_HTML = "html";
p
版权声明:本文为sixingbugai原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。