loadRecord(vtlib_purify($_REQUEST['record'])); $filenameid = $_REQUEST['record']; $quote_no = getModuleSequenceNumber($currentModule,vtlib_purify($_REQUEST['record'])); if(empty($filenameid)) $filenameid = time(); $filepath="storage/Quote_".$quote_no.".pdf"; //added file name to make it work in IE, also forces the download giving the user the option to save $controller->Output($filepath,'F'); // Added to fix annoying bug that includes HTML in your PDF echo ""; exit(); ?>