コード例 #1
0
<?php

include '../../include/header.php';

include './CImpressaoRecibo.php';

$Saida = new CImpressaoRecibo($_GET["Cod"], "CR");

if (!$Saida->ImpressaoReciboCR()) {
    echo "<h3 align='center'>" . $Saida->getMotivoErro() . "</h3>";
    exit();
}

echo "<body onload='window.print();'>" . $Saida->ImpressaoReciboCR() . "</body>";
?>
コード例 #2
0
    public function GeraPDFRecibo($CodCr2) {

	$String = new CString();

	$Model = new ModellancaCrBd();

	$ObjImpressao = new CImpressaoRecibo($String->criptografa($Model->RecuperaCampo("F_LANCA_CR_ID", "F_LANCA_CR2", "F_LANCA_CR2_ID", $CodCr2)), "CR");

	$ObjImpressao->ImpressaoReciboCR();

	$Html = $ObjImpressao->getHtmlRecibo();

	$mpdf = new mPDF();
	@$mpdf->WriteHTML($Html);
	@$mpdf->Output("C:\\BHSistemas\\SGMO\\DOCUMENTOS\\Recibo\\TESTE.PDF", "F");
    }