//mengenerate query
$result_query=$REPORT->retrieve_query($query);
/*
echo "<pre>";
print_r($result_query);
echo "</pre>";
*/
//set gambar untuk laporan
$gambar=$REPORT->getLogo('bireun', $url_rewrite);


//retrieve_html_penetapanstatuspenggunaanbmd
$html=$REPORT->retrieve_html_penetapanstatuspenggunaanbmd($result_query, $gambar);



//print html

$count = count($html);
for ($i = 0; $i < $count; $i++) {
     //echo "<br/>$i";
    echo $html[$i];     
}


//cetak reporting
//$mpdf=new mPDF(); 
$mpdf=new mPDF('','','','',15,15,16,16,9,9,'L');