Why Jasper Reports shows empty report in server, but generates correctly in jasper studio

前端 未结 2 1245
时光说笑
时光说笑 2021-01-24 15:16

I am using Jasper Studio 6.6.0 and Jasper server 7.1.

I have created a simple report with an image from a specified URL.

It generates correctly in Jasper Studio,

2条回答
  •  逝去的感伤
    2021-01-24 15:29

    The best way to do not have the empty page when no data source is provided, is to trick jasper to think there is a data source:

    1) Define an Data Adapter (a simple .xml file) and put it in reports folder:

    Data Adapter fake1
    

    2) Link it into the main report:

    
    
    

    prefix "repo:" to the value of the property for the data adapter, if the xml is deployed on jasper server.

    The attribute "whenNoDataType" will be ignored.

    Other details here.

提交回复
热议问题