running a crystal report from script not from screen - crystal-reports

Is it possible to run from a script running in Cygwin in any way a crystal report with parameters and get the report back in pdf format?
What i am trying to do is - I created a crystal report and I need it to run at night from a "scheduler".
I need to know if it is possible to run the report from a script (including sending the report 2 parameters) and have the report save to a PDF file automatically?
Thank you!

There are Crystal Reports SDKs for .NET and Java, available on the official download pages: https://www.crystalreports.com/download/
And, of course, a wide variety of third-party tools that promise to support scheduled report generation – I'd suggest to google after "crystal reports scheduler" or take Ken Hamady's list as a starting point: https://www.kenhamady.com/productlinks/

Related

How to connect Jasper Report to an OpenEdge application

I am trying to integrate Jasper reporting in my application which currently uses Crystal Report. As of now I am able to connect to the Progress DB and able to publish report to the jasper server from the studio.
The next step is to view these report from my application in pdf format.
Any help on how to do this or best suggestion would be highly appreciable. Is there any JasperConverter in Progress to convert the JRXML files to pdf directly from application?
Thanks Ahead.
I think you are looking in the wrong place. Shouldn't you be running the Jasper Report Viewer to view the report?
To invoke that from a Progress 4GL session you would either shell out and run an OS command or invoke a DLL. The details depend on the version of Progress and the platform that your client session is running on.

Editor for Crystal Reports Formula

I'm looking for some simple editor to test out some formulas used in Crystal Reports.
I don't want to download the entire Crystal Reports application, I just need a small, simple application or an online editor that can parse functions Crystal Reports is using.
I just need to test a few functions used in the reports and calculate the values based on the parameters I provide.
Is there anything like that?
You can export the report to a report definition format.
3rd-party report inspection tools (see list here) provide more powerful options such as mass inspection.

Protecting Crystal Report Design and Source

I have search everywhere on Internet to protect my source of Crystal Reports or protect them by any means but all in vain.
I am using crystal-reports ver. 9. and Developing Reports for an accounting and financing solution. and need to protect the reports that no one can mess with the reports.
Any help is appreciated.
Regards.
Jamshaid Riaz
There is no way to do this with Crystal 9, you need to upgrade to Crystal 2011 or above and use RPTR file. RPTR file is a run-time report , which can be run as a normal report by the end user but cannot be edited. RPTR file is created from a regular report using export. You will keep the regular report (RPT file) for development and export it to RPTR and deploy it when it is necessary. There are some tools , which pretend that they secure any Crystal report file , but these are false statements and the files can be easily open in design mode.
To make the report read-only:
Navigate to File Menu --> Report Options -->Select the 'Read-only' check box-->click 'OK'

Is there an api to create a Crystal Report

Is there an api that can be used to create a crystal report programmatically? I have reports written in Powerbuilder that we need to convert to Crystal and I would like to automate the conversion.
Crystal does have a report creation API, but I believe you have to have a license to their report server product to use it> I tried to find a link to this info on their site, but it is pretty well hidden.
Review the Crystal Reports SDK. There are COM, .Net, and Java 'flavors'.
For an example of converting an RPT file to XML, review this Google Code project: RptToXml
For .NET based languages, there's a Crystal Reports SDK available from Microsoft. They expose the object model and an SDK to create Crystal Report files.
Take a look at http://crystalreports.co.uk/developer-zone/ and select the appropriate platform (Java or .NET) and this will take you to a list of links into the SAP website.
The list is maintained by the one of the partners so should be up to date.

Can you start Crystal Reports 10 in read only mode so users can't create or change a report?

I'm in an environment where I have created reports in CrystalReports 10 and only want my users to view the report from an external application. The application is already set up to open the report with crystal, but I don't want my users to be able create or change the report. I can't seem to find a command line option to do this. Is there a runtime only version of Crystal?
embed crviewer and craxdrt components in your app (delivered with CR developer's edition, free to distribute) so that you'll be able to view reports without modifying them. Basic manipulations (zoom, search, export to pdf, display/hide details or groups) can still be done.
If you must launch this viewer from a command line, I'd advise you to embed it in an office document/file and manage it through VBA. You could for example launch the runtime version of Access (free to distribute) that will contain one generic form for Crystal Reports display.
There are Crystal Reports viewer components which you can use in your projects. They are coming with the Crystal Reports Developer editions and you can use them in almost every programming language. There you can define the report as view only if you want.
Go to SAP.com and search for "Crystal Reports Viewer". It may or may not do what you want.
Also take a look at "Crystal Reports Server". CRS XI is a nice reporting portal with many useful server-side features. Schedule reports to run and auto-publish. Generate PDF or Excel output. Limit access to reports (or groups of reports) by specific users, etc. But for your application you can use HTTP access within your application to the published results. This is a good solution for example when you have a large number of users viewing the same reports.
What about marking the file as read-only? If the viewer opiton isn't open to you.