jasper report with chrom / firefox present version

กระทู้คำถาม
ไม่สามารถ อ่านไพล์ หรือ  dowload file   ได้
กับ  jasper report 
ไม่สามารถบันทึก C:\Users\koh\AppData\Local\Temp\MBI8NwOJ.pdf.part ได้เนื่องจากไม่สามารถอ่านไฟล์ต้นฉบับ

chrome , firefox

แต่  firefox 51  สามารถ ทำงานได้

  Map parameters = new HashMap();
            parameters.put("ipn", ipn);
            print = JasperFillManager.fillReport(realPath + "//" + jasperReport, parameters, conn);
            outputFileName = "program14.pdf";
            out.clearBuffer();
//set the content type(can be excel/word/powerpoint etc..)
          //  response.setContentType("application/x-download") ; 
            response.setContentType("application/pdf");
//set the header and also the Name by which user will be prompted to save
            response.setHeader("Content-Disposition", "attachment; filename=\"" + outputFileName);
            JasperExportManager.exportReportToPdfStream(print, response.getOutputStream());

            conn.close();
แก้ไขข้อความเมื่อ
แสดงความคิดเห็น
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ  Open-source Software
โปรดศึกษาและยอมรับนโยบายข้อมูลส่วนบุคคลก่อนเริ่มใช้งาน อ่านเพิ่มเติมได้ที่นี่