0 Replies Latest reply on May 20, 2008 8:17 AM by 843844

    Export to CSV not working properly

      Hi folks,

      I have some problem while exporting the records to csv format.

      We are creating the exported file on the fly.

      My problem is while selecting some 9k records and exporting the file is downloaded and

      its contains only the headers part. The selected records is not included in the file content.

      below is my code:
      File userDataFile = new File("ReportExportedFile" + (Constants.EDCORE_DATE_MONTH_FORMAT_DOC_NAME.format(new Date()))+".csv");
      out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(userDataFile),"UNICODE"));
      // this is the headers 
      // writing the record to file on the fly
      if(retList != null && retList.size() != 0){
               Iterator iter = retList.iterator();
                    Dto = (DTO)iter.next();
                    for(int i=0; i<declIDList.size(); i++){
      // this is not exact code its same as mine
      its working some times, some times is not working..

      please advice..

      any comments is very use full for me..

      Thanks in advance...