Jump to content
We've recently updated our Privacy Statement, available here ×

how to create a new tab in XL using same dataset


bbharat

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

bbharat
Wrote:

Yes sir. I have one report template with various fields including a subreport.

Now what I want is when I render this report, subreport should go to a new sheet in the same XLS report.

So one XLS report with 2 sheets/tabs.

thanks

Well, if you want to separate Master and SubReport in XLS file you'll need to change your layout in a matter that SubReport will start at a new page.(try to use a PageBreakElement within title, or use "TitleAtNewPage" attribute of SubReport) 

 

If you've  reached that, you can use the mentioned JRSingleSheetXlsSaveContributor to export the report to XLS with each page as a new (excel)sheet/tab.

But be aware, that if MasterReport has two pages, you'll get two (excel)sheets/tabs for that and also per SubReport-Page.

A clear separating "Master- SubReport to Sheet" XLS-Export (where each single report has just one (excel)sheet) doesn't exist. (IMHO)

 

regards from Germany

C-Box

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...