How to change crystal report template - crystal-reports

I have created a custom report template and used this custom template in many report.
Now I have added a new formula and text field in report header of custom report template,
the problem is that this new changes in custom template not showing any of the reports using this custom template.
If any changes done is custom report template it should auto refresh all other reports using this custom template...how it can be done??plz help
Thanks

Templates don't work the way that you describe--they are NOT linked to any of the other reports.
Instead, a template is applied to a target report; its settings (fields, fonts, etc.) are thus transferred to the target.
You will need to re-apply the templates to the desired reports (as painful as that may be).
** edit **
A template can be applied programmatically using the report-application server (RAS) SDK. Review the CrystalDecisions.CrystalReports.TemplateEngine assembly. I believe that RAS is a feature of BusinessObjects Enterprise and Crystal Reports Server only.
** edit 2 **
You could skip the template approach entirely, enumerates a report's object hierarchy, and apply formatting as appropriate. You could adapt RptToXml's code for your needs.

Related

BIRT Report - using Library as basis for report design files, adding new Report Parameter not reflected in all report design files

BIRT Report - using Library as basis for report design files, adding new Report Parameter not reflected in all report design files.
I designed several report parameters into my library file and created 40+ report designs from it. Now I'm adding a couple new report parameters to the Library file that I'd like to see in all of my Birt Reports. If I open a report design file, Eclipse signals me that the library changed if I modify something on the Master Page, but not when I add a new Report parameter to the library file. Is this a defect or do I have to got to each and every report and add the new report parameters manually?
I saw that for individual Report parameters while editing the report design, there is a button in the Properties (bottom window) to "Restore Properties from the original library item", if it were manually overridden in the report, but nothing to reflect additional parameters.
Here is my library outline showing my parameters missing from the report; followed by what my report reflects.
Library Report parameters
Design shows missing Report parameters
... Is this a defect or do I have to got to each and every report and add the new report parameters manually?
This is intended.
You'll have to add each parameter manually.
A BIRT library is a collection of items like layout items, data sets, data sources, report parameters etc.
A BIRT report is more or less the same, the difference being that a report has a body.
Individual items in the report can reference library items.
But there is no such thing like an "item group" - which you would need.
But if you have a lot of reports and a lot of new parameters, you can use the BIRT design engine API (DE API) to open the reports and add the parameters programmatically. Since examples for using the DE API are rare, doing it manually will probably be faster than creating a program for this. Aapprox. 3min x 40 reports = 2h for doing it manually, developing a program will take you at least twice as long, but could be useful in the future.

changes in report library data source not reflecting in related reports

how to maintain single datasource url and username
I have gone through all your answers and questions, but after creating a library in report project and after making change in library data source it is not reflecting in all related reports...so please help me for this
I want to change my testing database to UAT ...and it is making problem in changing all data source in all reports with their parameters
There's a little gotcha/flaw in the BIRT IDE:
As soon as you change a DataSet in a BIRT report, the designer UI overrides the DataSource's properties. You should go into the advanced properties of the DataSource in your *.rptdesign and clear all local modifications (there's an icon to the right of the properties tab to do this).
Only then will the DataSource in the rptdesign inherit the props from the rptlibrary.

How to create JapserServer report templates?

I'm pretty new to JasperReports, Jaspersoft Studio, and JasperServer but I've got a JasperServer instance up and running and have been using it to create reports from Ad Hoc views. This works well but I'd like to make some report templates so that reports run from JasperServer can have branded headers/footers etc.
I worked through this tutorial and was able to create what I thought was a fine template but when I try export it as a JasperServer template I get all sorts of validation warnings and indeed trying to run reports using it from the server results in errors.
Here's an example of the warnings I'm seeing:
The style ChartValueAxisTickFormat was not found in the template
And the errors I get on the server when trying to use these templates look like those described here. I have tried using templates without any text fields or variables though. In fact, the unexpected tokens it complains about are usually actual field ids... do I need to anticipate the fields that would be used when creating a template? Wouldn't this defeat the purpose of having templates for reports created from ad hoc views?
Anyway, there's quite a lot of information out there around creating templates for Jaspersoft Studio (iReport) reports but not a whole lot on templates for JasperServer reports.
It seems like there's something fundamental about templates for JasperServer reports that I'm missing. I'd appreciate any help with either the issues I am describing or being pointed toward better documentation for creating these templates specifically.
Edit:
I'm using Jasper Studio Profession 5.5.0.final on the desktop and a Jaspersoft BI Professional for AWS 5.5 instance as the server.
Report Template as in tutorial you have linked are for Jaspersoft Studio / static reports only. Adhoc templates are different types of objects which are described here
I have encountered the same errors, and I have solved it by simply adding a styles to my report, in other words:
In the outline of your report, Right click on Style -> create Style, then just change the name of the style by each name of missing styles apperead (for example, ChartValueAxisTickFormat).
After creation of 55 styles in your report template in jasper Soft Studio, save the report, then export it as report template.
I hope this will help you.

Filters in Eclipse Birt

I have to create a Web Application using Eclipse Birt, and Apache Tomcat to have it on line.
One report will include a table and a chart, both taking data from MongoDB.
While I succeeded in designing a simple report that accepts parameters from Eclipse Birt suite (based on the tutorials on the Eclipse website), I have troubles in handling a more complex report.
Actually, I wish to create a dynamic filter on-the-fly operating on a single column (i.e. "country") where i can choose the different values (i.e. "USA", "UK"...) and then have the rest of the data visualized in the report be refreshed correspondingly.
I also wish to place the filters in a different section of the report (header or footer...) in the same web page, and not have them chosen before opening the report like the parameters of Eclipse Birt.
Said it differently, I would like to have lookup-fields in the header of the report, to automatically filter the data displayed, so to refresh the query behind the report.
May be the solution could to integrate a report built with Eclipse Birt and MongoDB in a Dynamic Web Application using Eclipse too? Or in a GUI in Eclipse like WindowsBuilder?
Has someone faced this task and can help me?
Thank you so much,
Federico
There is not a simple 'out of the box' solution for what you are describing. But there are solutions.
The first thing to understand is that the BIRT reports as delivered via Apache Tomcat, are intended to be stagnant not dynamic. BIRT pulls the data set, then filters it and delivers it in HTML. This link describes the order of events in report creation.
As far as I am aware there is no way to actually provided the function of filtering the created report in BIRT after the report is created.
But, you can provide the illusion of a filtered report, there are two common methods.
Create multiple tables on one report, representing the display as you want it displayed, then use a button command to hide or show the appropriate tables.
Create multiple reports and have buttons the pass new parameters to a new report that opens in the same window.
There is a third approach that can be used, that gives you similar functionality. Use Cascading Parameters (right click report parameter in Outline > New Cascading Parameter Group). This of course is not the function as you envision it in your description, but can give the results you seem to be wanting.

Setup pagename in SSRS R2 when export to Excel

I've to put sheetnames when export my SSRS to excel for each pagebreak. I read the documentation and I couldn't get the PageName properties in my tablix properties.
I checked in group properties as well but only I can setup page breaks options between instances of a group
I'm working with SSRS R2. Is this alloe only for Report builder?
someone can help me!!!
Thankss
No, PageName property is available in the report designer (BIDS) also. You won't find it when you right click on the
report item and choose properties. Instead, look in the properties window for the tablix.
One other thing you may want to check is the Target Server Version property for the project. As you know this is only in
SQL2008R2. So, you won't see it if the target server version is set to SQL2008 or prior versions.
~Sam.