I've got the following suitelet code that basically provides a form for uploading a file and then runs through and adds time records for all the lines in the uploaded file. A PDF report is generated and displayed on the screen. The problem is everything works great in Firefox, but in IE the PDF does not come up and it basically is throwing an error like the page does not exist.
function TimeImport(request, response) { if (request.getMethod() == 'GET') { var form = nlapiCreateForm('Upload File To Import', false); var params = request.getAllParameters(); var fileField = form.addField('file', 'file', 'Select File:'); fileField.setMandatory(true); form.addSubmitButton('Submit And Process File'); response.writePage(form); } else { var file = request.getFile('file'); file.setName(file.getName()); file.setFolder(86); var FileID = nlapiSubmitFile(file); ImportOneFile(FileID); var DeleteFile = nlapiDeleteFile(FileID); } } function ImportOneFile(FileID) { var xml = "<?xml version="1.0"?>n<!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">n"; xml += "<pdf>"; xml += "<head>"; xml += "</head>"; xml += "n</body>n</pdf>"; // Code here that process file and writes out lines of detail var file = nlapiXMLToPDF(xml); response.setContentType('PDF', 'TimeImport.pdf','inline'); response.write(file.getValue()); } Thanks.