2016-03-03 57 views
0

TCPDF錯誤:setPage錯誤的頁面數量()函數:0TCPDF錯誤:setPage錯誤的頁面數量()函數:0

我的代碼:

include_once('class/tcpdf/tcpdf.php'); 

include_once("class/PHPJasperXML.inc"); 
include_once ('setting.php'); 

$xml = simplexml_load_file("Relatorio/relatorio.jrxml"); //informe onde está seu arquivo jrxml 

$PHPJasperXML = new PHPJasperXML(); 
$PHPJasperXML->debugsql = false; 
$PHPJasperXML->xml_dismantle($xml); 
$PHPJasperXML->connect($server, $user, $pass, $db); 
$PHPJasperXML->transferDBtoArray($server, $user, $pass, $db); 
$PHPJasperXML->outpage("I", ""); 

任何人都可以請幫我解決這個問題?

+0

有沒有setPage()在您包括的代碼。 – Sudoscience

+0

我猜你的報告是空的set當Jasper報告標籤上的數據類型=「BlankPage」時 –

回答

-2

如果你刪除任何頻段,而像標題設計然後恢復它,那麼你的文件是好的