Is it possible to automatically name Report downloads (PDFs or .csv files) to reflect the report title?

(This strikes me as being an obvious thing to do, so apologies if I've missed some equally obvious solution)

1 Answer 1


The code currently puts all pdf's under CiviReport.pdf (and similar for csv)

Would be good to use the report title as the file name. The code to make the change is here:


search for CiviReport.pdf

If you can make the change, please file an issue and submit a PR against master so it can be included in the next release.

  • Thanks. I'm not sure my php is up to that, but I'll take a look.
    – liblogger
    Commented Jun 3, 2015 at 15:58
  • (Also, just after a quick look at that file, it suggests that the csv files would appear as CiviReport.csv, but the files I'm downloading always take the form Report_date-time.csv - is there another file that defines this?)
    – liblogger
    Commented Jun 3, 2015 at 16:03
  • Check the call to: CRM_Report_Utils_Report::export2csv which also happens in that file Commented Jun 3, 2015 at 17:35
  • Ah - found it :)
    – liblogger
    Commented Jun 4, 2015 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.