cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting Crystal Report to PDF using CMD Command Prompt

09-30-2022 9:35 PM
2479 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

We are trying to have a CMD batch file run on a regular basis using Windows Task Scheduler that runs an .rpt file with given criteria that saves the results as a PDF locally.

Does anyone have experience with this that knows how this can be done?

Running Crystal Reports 2020 x64 version 14.3.0.3532

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

ido_millet
Active Contributor
0 Likes

Ken Hamady maintains a list of 3rd-party tools that can do this here.

DellSC
Active Contributor
0 Likes

There is no way to run a report from the command line unless you write a program that will run the report and then call that program. There are two SDKs available to accomplish this, both of which are free to download and work with. If the program will be used in-house, there is no further licensing required other than you have to have a full copy of Crystal (which you do.)

.NET SDK: https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Java SDK: https://wiki.scn.sap.com/wiki/display/BOBJ/SAP+Crystal+Reports+version+for+Eclipse+-+Downloads

Both wikis include links to licensing information and the .NET SDK wiki also has links to sample code.

-Dell