从tomcat url转发参数到jasper报告

时间:2015-08-18 08:29:44

标签: tomcat jasper-reports oracle-apex

我将iReport 4.6.0与Tomcat 7一起使用。我想将参数从URL(Tomcat)转发到iReport(不使用数据库连接)。

当我使用参数作为提示和空数据源(它工作)在iReport中预览报表时,但是当我使用Tomcat url时,不显示参数(因为数据源在url中使用:

var _myfilename = ConfigurationManager.LessonPath + "media/" + friendlyFileName;

var realFile:File = File.applicationStorageDirectory.resolvePath(_myfilename);

var destination:File = File.documentsDirectory;

destination = destination.resolvePath(_myfilename);

realFile.copyTo(destination,true);

destination.openWithDefaultApplication();

那么,如何转发要在iReport中使用的参数?

Preview report with iReport

Preview report using Tomcat url

1 个答案:

答案 0 :(得分:0)

当我将静态文本和参数放在Column Header Band中时,问题就解决了。 但是当它放入Detail Band ??

时,为什么没有显示2个项目

2项的位置:enter link description here

使用网址enter link description here

查看PDF