Ignore pagination and page break leading slow report rendering - pagination

I have sub reports placed on a main report
given is ignore pagination to true and placed break element after the sub report(to split sub reports in separate excel worksheets).
given local anchors for each sub reports in the background band.
Deployed the report on jasper server.
I am getting each report in each worksheets and the excel export is perfect.But in the report rendering page it is not breaking,as we given ignore pagination and it slower the whole report and anchoring.(evry page in the sub report renders in one page of jasper server almost 500 pages )
My question is do we have any option to break only for excel export???
Note :- I have tried with the property export.xls.break.after.row. and it is breaking sheets perfectly but the excel columns got merged.so I opted page break element from the palette
Please give a solution .

The property to set or avoid new sheet on page break in excel is
net.sf.jasperreports.export.xls.one.page.per.sheet=false
So you can try to remove ignore pagination and setting this property to false.
These are the available properties config.reference

Related

SSRS Report Incorrectly Naming Excel Tab

I'm using MS SQL Server 2014 Report Builder 3.0 to generate an SSRS report in Excel. The SSRS report contains 3 sup-reports driven by independent matrices. I'm using page breaks to separate each of these into their own Excel tabs called Detail, Summary and Audit in that order. The "Audit" sub-report will often be blank, which is completely expected. The problem is that when this occurs, the Excel workbook will be generated with "Audit" tab instead being named "Detail2".
I've tried switching between placing the page breaks after "Summary" and "Detail" to placing the page breaks before "Detail" and "Audit" and it's the same issue either way.
Is there a way to correct this?
Use a Rectangle and place the subreport inside of it. Then set the page name of the Rectangle.

Pulling all info from open Access subform into excel

We are using a access front end that is being developed externally. It displays a form that contains numerous points of data and a few subforms.
I am trying to code a excel sheet that would pull data from various places in the currently open form.
I have gotten as far as to be able to access all the points of data in the main form and the first line in the subforms using the following code (In this example, the "pnum", is the left most field displayed in the subform):
Set objacc = GetObject("xxxxx\Database.accdb").Application
Debug.Print objacc.Forms("mainform").Controls("main subform").Controls("Pnumber")
This works and gets me the value of the very first element named "Pnumber" in the main subform.
However, the way the subform is formulated, it can have anywhere between 1 and 30+ "Pnumber" fields.
I need a way to pull everything that the currently visible (filtered down) subform contains regardless of how many lines there are.
Thanks!
If I were the developer of that Access application, and you asked me for this feature, I would code an API for you to automate getting the right data.
One approach I can think of in this particular case would be to populate some temporary tables, on request from Excel VBA, and have Excel use the Access database file as an external source of data. Or Access could be coded to push the right data into the open Excel worksheet.
The way you would get access to the data in its current state in the form (filtered, sorted, etc.) would probably be best through the RecordsetClone property of that (sub)form. At least that's what I imagine I would use to implement that feature.

Stop SSRS adding Excel "Outline" when exporting to Excel

We have a report which looks like this:
If I then go Actions>Export>Excel I get the following:
Unfortunately the number circled is misleading. This column is a count of users - so if the same user was in several months they should only be counted in the total as 1.
I assume out-of-the-box it adds the excel outline whenever we include the expansion/collapse (+/-) functionality in the report.
Is there a way in the rdl file to stop RS's export functionality of adding the outline?
That Outline behaviour in Excel is triggered by the ToggleItem property in SSRS. You cannot set this with an Expression. Therefore I would remove the ToggleItem property from all textboxes.
Instead I would use Bookmarks and/or DocumentMap functionality - these achieve similar results and generally work better across a broad range of rendered output formats.

Dynamic expanding range for excel template

I am an excel user at the most basic level with a programming background who has been put on a nightmare project.
Here is what I need to produce:
Multi-page excel sheet which will be converted to PDF through the use of a third party tool.
Every page will have the same "header and footer", which I "quoted" because they are not in the actual header and footer because they need to reference named ranges on background sheets.
The first page will always be the same static text.
The last three pages will always be the same static text.
The middle pages will contain data from the "background" sheets which contain a bunch of raw data that gets populated every time the user runs the 3rd party tool.
My problem: how do I make these middle pages like a dynamic template where if the data from a report needs to spread to the next sheet this will happen dynamically leaving all the other pages intact?
Should I use an excel template?
Has anybody done anything like the before?
I'll just mention that the reports are coming from Salesforce and third party tool is Drawloop.

CrystalReports excel field cut off when using CanGrow=True

I am working on an excel report in CrystalReports, in VS2005. I have a field in the Details section which can have up to 255 characters of text, and I want the height of the row in excel to expand so that the entire text can be seen initially when the report is generated.
I set CanGrow=True in the field's properties, and the field does seem to grow; the field is only one line (Height=159), but many of the rows display multiple, wrapped lines of text. Some rows intermittently have the bottem half of the last line of text cut off; the user has to expand the row a little bit to see it. There doesn't seem to be a particular field length that causes this - in one case, it has four lines total in the output, and in another case, it has only three.
Can anyone suggest what might be the cause of this, or how I could work around it?
Thanks in advance for any help you guys can offer.
[Edit: I am no longer working on this project, so I never found out what became of this setting. Most likely it wasn't fixed, since it's not a critical issue.]
One solution to this issue that I've come up with in the past is to have two separate reports. One for display and exporting to pdfor rtf and another report for exporting to Excel.
I know in general this is not a good approach because there is the possibility for data to be different in the export than the display report, but if careful it works well.
I have a situation where a client needs data printed in a specific format on a report, but there is way to much data to physically be able to fit on a page. We worked out a solution that I run a "display version" of the report that fits most of the data, but the rest of the data necessary for there client is added only to the "Excel version" of the report.
To do this I simply load the "display report" to the report viewer as you normally would, but when you go to export the report I load the "excel report" with the same parameters as the "display report" and call the code to export the data to Excel.
By using this method the "display report" can be formatted any way necessary without having to worry about messing up the export to excel. The excel report fields can then be made a smaller size than required by the display report because the data should export even regardless of the size of the field. Doing this allows you to fit more data on the Excel export report.
Since both reports use the same datasource you will have an issue if you make a change that you have to remember to go verify the database on each report to see the new database changes, but this method allows you to include more data and in a different format than the display version of the report.
Hope this helps.
While not a solution for Crystal (I don't know of one), as part of the reporting team at GrapeCity-Data Dynamics, we've worked with similar issues taking free-form reports to excel spreadsheets for a decade. In our Data Dynamics Reports product we came up with a completely new way of solving the problem of exporting reports to excel.
We allow you to create a template for the report output. The template is a basic excel file with place holders for the various textboxes (or other controls) and regions (tables, lists, etc.) in the report. You can open this template inside of excel and modify the properties of the cells and rows. In the scenario you describe, you can export a "template" from Data Dynamics Reports and then modify the autosize property of the row in the template containing the placeholder for the textbox you're struggling with.
When you export the report to excel next time, just specify the template to Data Dynamics Reports (which can be done programmatically and transparently to the end user) and Data Dynamics Reports will honor all settings you specified in the template.
This is hard to explain so there is a ~2 minute screencast that shows this feature at our website in the following location:
http://www.datadynamics.com/Products/DDRPT/ScreencastViewer.aspx?ID=XLS01
For more information about the product and for a free trial download visit: http://www.datadynamics.com/DataDynamicsReports
Scott Willeke
GrapeCity - Data Dynamics

Resources