Here I only want to pass a custom class or only parameters into a Jasper template, but it seems without data source there only show up a blank pdf file without any layouts.
I guess it is because the default value of whenNoDataType in the jrxml is “nopage” but even I set it to
whenNoDataType="AllSectionsNoDetail"
There is still nothing shown up there for any detail band, but only the title band.
Can I ask how to solve this?
Thanks in advance.
Solve it myself
When give a blank data source then it works like a charm