Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Schedule Report to run only if there is data

Schedule Report to run only if there is data

Schedule Report to run only if there is data

I am working with Crystal Reports XI and Crystal Reports Server 2008. I have an event day report that currently has a prompt for event date. I'd like to schedule this report to run only if there is an event on that date or if the report returns data.

I'd also like to schedule the report to run based on the time of the event, i.e. if the event is at 1PM then run at 12PM and if the event is at 7 PM then 3 PM.

Is this possible in the central management console?

RE: Schedule Report to run only if there is data

This is not possible working strictly with the CMC.  However, you might be able to do it with the combination of a custom database  job or program.

Basically, you need a job that will check to see whether there is data for the report and create an empty file if the data exists.  You would then create a file-based event in the CMC that would look for that file and schedule based on that event.  Use this event and a specific time to schedule the report - the report will run at the time that you want only if the file appears.

Part of the trick here is that BO's file-based events look for the presence of the file after it has been absent for at least one cycle of the Event Server.  So, you'll also need to set something up to delete the file after each report run.  This can easily be done with a .bat file to delete the file - use the Windows Schedule to schedule the run of the .bat file.


A computer only does what you actually told it to do - not what you thought you told it to do.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close