def makeCSVFileForReport(filename,dbid=@dbid,query=nil,qid=nil,qname=nil)
      csv = getCSVForReport(dbid,query,qid,qname)
      File.open(filename,"w"){|f|f.write(csv || "")}
   end
def makeCSVFileForReport(filename,dbid=@dbid,query=nil,qid=nil,qname=nil)
      csv = getCSVForReport(dbid,query,qid,qname)
      File.open(filename,"w"){|f|f.write(csv || "")}
   end
Create a CSV file using the records for a Report.