How to make Jaspersoft Studio export to xlsx without repeating column header (as JasperReports server does)? - jasperserver

Jaspersoft Studio exporting to xlsx has this annoying behavior of "paginating" an Excel sheet as if it were a page oriented document.
There is an option in exporter to put one page in each sheet, that's not what I'm talking about. It prints everything in a single sheet, but repeats the column header band (the names of the columns) and page footer band every dozens or rows, as if it were a paginated document like a PDF.
I know it's possible to prevent this because if I run the very same report on JasperReports Server it will work just fine, i.e. will print column header every page if I export to PDF, but will not if I export to xlsx or xls.
I've played with many options for XLS exporter in Jaspersoft Studio and many export configurations of the report without success. My Jaspersoft Studio is configured to reproduce what JasperReports Server does in terms of xlsx export, but I don't think any of these export parameters really deal with pagination.

For this I just put $V{PAGE_NUMBER}==1 in the "print when" field on the column header properties, then it should only print the column header once. Not sure though about the page footer I'm afraid as I don't use them but imagine that would obviously could/would change.

Enable Ignore Pagination
Here is what you need: Check the Ignore Pagination in report's properties

Related

Crystal Reports 2013: Conditional rendering based on export format

I am developing a report in Crystal Reports 2013 to publish to a Business Objects server. The user wants it to be able to run to HTML, PDF, Excel, or CSV. If I make it compatible with CSV (a raw data dump with one row per record -- for use downstream by a machine) it will be too wide to fit on one page for the PDF output. We have no direct control of the Business Objects server. This is all done through the cloud application.
...and I'm new to Crystal Reports...
Is there a way to create two sections in the report -- one for CSV and one for PDF -- and have one render (or hide) when the report is run to Excel or CSV and the other render (or hide) when the report is run to HTML or PDF? How?
No, but you can create a parameter that prompts the user for desired layout ("For PDF", "For CSV") and use that parameter in the dynamic expression for section suppress attribute.
Assuming they don't, you can always go to plan B and simply create 2 different reports.

Crystal Reports Word wrap cuts in the middle of a word

I have an 3rd party tool that uses Crystal Reports to generate reports.
In essence it just uses an odbc connection to the internal DB.
Now some of the fields that I put on my report are large text fields. To accommodate this I set the field to "can grow" and word wrap is on.
While the growing part works fine it is the wrapping that acts weird.
For some reason in both the preview of the designer or the actual generated report itself it cuts words when it reaches the side of the page instead of moving the whole word to the next line.
Any thoughs what this could be (or if it is a bug)?
The text field is formatted/interpreted as HTML
Based on the version I was unable to find a solution/workarround.
Hence I solved it in my data itself by changing the data before feeding Crystal Reports

Crystal Reports : Crosstab refuses not to paginate

I am using Crystal Reports 11 (XI) and I have a crosstab that has quite a few rows to it. Its publishing format is to Excel, so pagination doesn't really even make sense. However, no matter what I do it repeats the column/crosstab headers every couple dozen lines. I've tried:
-Increasing page size definition to max size (12x18) portrait
-Turning off pagination in the output settings
-Turning off horizontal pagination
-Deleting column headers (works) but I cannot delete the crosstab header
I'm running out of ideas.
If the goal is just to create an excel file with some pivoted data crystal reports is not the best way to do it. Check the first 5 minutes of this video:
http://www.r-tag.com/Pages/Preview_Demo.aspx
It compares the same data presented as a cross-tab in Crystal reports and pivot report based on a SQL ad-hoc query. SSRS is also part of the comparison and it is a better choice than Crystal too , but SQL ad-hoc query is my favorite for pivoted data.
P.S. I am proposing this alternative because the tool is free, it will save you development time and will create a better formatted excel file. If you are using BOE and you want to keep the report there this might not work for you.
The solution is as contrived as the problem...
There is no way in Crystal XI to "turn off" the crosstab pagination. It simply cannot be stopped. However, you can cheat the system by configuring a massive page size. In windows on your development machine, locate your XPS printer virtual device and choose "Print Server Properties" (in the top banner in Win 7+)
In the "Forms" tab, you will be able to configure a new paper form object of arbitrary size. Click on "Change Form Settings" and create a new page that is as large as you think you will need. I'm not aware of any limitations on this configuration, but I'm sure bad things happen if you go nuts.
Returning to crystal, go to printer configuration and select the XPS document printer as your target device for exports, and save the custom page size as the target paper type.
Now, the crosstab will assume you are printing to a massive sheet and will not attempt to paginate. As far as I can tell it's impossible to achieve the same effect any other way.
Here is a introduction about jasper crosstab.
http://www.tutorialspoint.com/jasper_reports/pdf/jasper_crosstabs.pdf
From the document, you can add two attributes in node
<crosstab isRepeatColumnHeaders="false" isRepeatRowHeaders="false">
...
</crosstab>

Reporting Service: Change reports based on format

I have a report that will be viewed from SSRS report manager and scheduled to send a flat file as well. The problem is that the rich display, summation rows, and some other elements that are perferred when viewing the report online or as a PDF are not wanted when the report is viewed in Excel or when it is exported to CVS. The solution I proposed was to simply have two reports. One that was nicely formated and the other that was more of a raw data feed but they want only one report meaning that I need a way to show one thing if it is viewd online or saved to a PDF and something different when it is saved to CVS or XLS. Is this possible and if so how?
When exporting to .csv format, many fields are stripped. Have you looked at what the existing functionality does to your report?
If that's not adequate, you can use the new SSRS 2008R2 global variable to change item visibility. For example set the hidden function to:
=(Globals!RenderFormat.Name = "EXCEL")
This would hide something when exported to Excel format. (This is only available since SSRS 2008 R2.)
More info on this at:
http://blogs.msdn.com/b/robertbruckner/archive/2010/05/02/globals-renderformat-aka-renderer-dependent-report-layout.aspx

How to create reusable footers in SSRS 2008?

In my project I am already having a number of reports and also new reports are being created. Now I need to apply a common Footer (with page number, total page number, user name, report name and execution time) for all these reports. This footer has to be in such as way that we can modify it anytime (at a single place) and all the reports will get modified footer there after. Also the footer should be re-usable.
I have tried out approaches like
1) Creating a report and putting it inside the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject - This allows the reusablility of the template. But if modified will not get applied to existing reports.
2) Creating sub-report and adding it to the end of the Data area in main report. This provides re-usablility as well as modifiable features. But not able to show Page Number, Total Page Numbers etc... and also not able to show the footer in each page of the report.
Can anyone give me some leads on how these features can be acheived?
Thanks
As far as I know this is not possible. Templating seems to be one of the main deficiencies of SSRS.
It's not ideal, but what you could possibly do is create an xsl stylesheet to process all of your RDL files and add/ update the footers.