How can i change datasource of a rpt report in Cystal Reports Server - crystal-reports

I have 3 different machines with Crystal Reports Server XI R2 installed. They are at different subnets pointing to different oracle databases with same schema definition but different names (dev, test, production).
I got a rpt file created on the development environment, pointing to the "dev" schema.
All went fine. The report executed successfully.
When i got the same rpt and published it in the test server, i could not change the datasource location. It appears that the rpt file keep fixed the datasource that was used in its creation.
Anyone knows how can i change the datasource of a rpt file, making it independent of database location and independent of the database used by the designer?
Thanks

I assume from the question that the different Oracle databases have different database names, but the same schema name - something like OperationalDB on dev, test and live? (It's more complicated if they have different schema names.)
If so, then it depends on what sort of Driver you're using.
If using an ODBC driver, then simply set up different ODBC sources (pointing to the appropriate database) with the same data source name on each of the Crystal machines.
If using a native Oracle driver, then I suggest editing the TNSNAMES.ORA file on each of the machines so that they each have the same TNS name pointing to the appropriate database.
If using a native Oracle driver and you are unable to edit the TNSNAMES.ORA file (for example, if it is a shared network file instead of being located on each of the Crystal machines), then you will need to change the datasource location in the Report Designer (or via the API, if accessing Crystal through one) each time you transfer a report from one machine to another.

Related

Copy List & Label server content from DEV to QA to PROD

Reproduce List & Label content in different environments.
I tried enabling List & Label API and use the methods, but input parameters need existing ParentFolderID, etc... which need to be explicitly created in server.
I am new with List & Label report server.
My requirement is to create all reports (data sources, etc...) in DEV server.
However to QA and PROD afterwards, there is a need to be able to 'export' all existing reports (data sources, etc...) from DEV.
My knowledge is more of Oracle BI Publisher.
In BIP server i have an option to download (zip) all the contents of a server folder (where i have all the reports) and i am able to log in another BIP server and upload the zipped file from original server.
This way i have exactly the same reports on all servers.
Is any sort of feature like it in List & Label report server?
Explicitly i need a kind of reports installer into List & Label report server.
Regards,
ccarvalho
Currently, there is no such feature. The suggested procedure would be to copy the entire database from Dev to Production if your're working with the Report Server on both ends. Would that work for you?
Other than that, if you're designing your reports from a desktop app and want to transfer them to the Server, you could use the REST API of the Report Server. Here is a blog post covering the basics of this API. The setup also contains a sample ("C# Client API Sample").

crystal report viewer showing blank report

I had an application having crystal report in a machine with local sql database, there the report was showing well, but when i copied the same application in another machine having the database file copied in the sql, the application runs fine but the crystal report is showing blank page.
The controls within the application are retrieving the data from the database.
I have created a new ODBC connection.
I have changed the data-source location in the report file according to the new local machine using the ODBC connection.

Migrating jasperServer to another machine

I have a jasperServer that contains more than one hundred reports in machine1 and I want to migrate it to another machine B. I do not know how to do it. I do not like to configure the new server again. I want to take the jasperServer and put it directly to the other machine.
Is it possible to do it?

connect Jasperreports community edition to another database server

Version - 6.0.1 (jasperreports-server-cp-6.0.1)
Is it possible to connect jasperreports community edition installed on a ubuntu server to another postgreSQL database server?. I have followed this
https://community.jaspersoft.com/wiki/connecting-jasperreports-server-yo....
When I try to create a data source (JDBC) , its showing nothing like in thedocument. It simply returns the blue menu (Library, view, manage)
Any help would be appreciated.
Assuming you want to report on a different database you have to create a new datasource. Select view->repository, right-click in the tree somewhere and create a new datasource. You have to have the correct driver available but it will already have the driver for postgres. Put in the connection details and save the data source.
When you upload a report to the server, you'll have to then associate the report with the datasource (edit the report properties). This is all covered in the documents you get with the install e.g. JasperReports-Server-User-Guide, JasperReports-Server-Admin-Guide

How to use JNDI in Crystal Reports

I have a Tomcat 5.5 running which includes a Webapp with the Java Reporting Components (JRC) 2008.
The Server has a different data source than the client, and currently I set it with the setConnection() functions on the tables, and it works fine. The downside is, that this taken 800ms (Damn slow crystal) just to set the datasources.
Since Crystal Reports seem to use JNDI, how do I configure JNDI in my app? Can this be done programmatically, or do I have to specify the data sources in the web.xml?
Okey, I found out for myself.
Add the Datasource to the context.xml of the Tomcat Server, and add a ref to the web.xml! Now Crystal is happyly taking this datasource and no manual relinking of datasources is needed.