Answers.Body: <p>The code currently puts all pdf's under CiviReport.pdf (and similar for csv)</p>
  
  <p>Would be good to use the report title as the file name. The code to make the change is here:</p>
  
  <p>CRM/Report/Form.php</p>
  
  <p>search for CiviReport.pdf</p>
  
  <p>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.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-03T15:58:11.090Z
Answers.Text: Thanks. I'm not sure my php is up to that, but I'll take a look.
Answers.UserDisplayName: liblogger
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-03T16:03:44.267Z
Answers.Text: (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?)
Answers.UserDisplayName: liblogger
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-03T17:35:21.897Z
Answers.Text: Check the call to: CRM_Report_Utils_Report::export2csv which also happens in that file
Answers.UserDisplayName: Donald Lobo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-04T15:26:39.327Z
Answers.Text: Ah - found it :)
Answers.UserDisplayName: liblogger
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-01T16:26:49.450Z
Answers.LastActivityDate: 2015-06-01T16:26:49.450Z
Answers.UserDisplayName: Donald Lobo
Body: <p>Is it possible to automatically name Report downloads (PDFs or .csv files) to reflect the report title? </p>
  
  <p>(This strikes me as being an obvious thing to do, so apologies if I've missed some equally obvious solution)</p>
  
Tags: <civireport>
Title: Is it possible to customise report export file names?
ThreadText: # Is it possible to customise report export file names?
  
  (Asked by: username_0 on 2015-06-01)
  
  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)
  
  **Tags:** civireport
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-06-01. Score: 4
  
  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:
  
  CRM/Report/Form.php
  
  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.
  
  > **Comments:**
  > **username_0**: Thanks. I'm not sure my php is up to that, but I'll take a look.  
  > **username_0**: (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?)  
  > **username_1**: Check the call to: CRM_Report_Utils_Report::export2csv which also happens in that file  
  > **username_0**: Ah - found it :)  
  
  ---
  
  