Export CRM report Programatically

Export CRM report Programatically

Is there a way to script an export of a CRM report to a pdf or csv?  I was hoping to automatically have a report I created waiting for me in the morning.