Can someone show me some code snippet on how to create an inline SubReport using Pentaho reporting API?

No matter what I do, the subreport I created turned out to be "banded".