Hello,
I want to create a PDF document, using the PHP Code of a Grid button.
I tried the following PHP-Code within a Button PHP Code in the grid:
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont(‘Arial’,‘B’,16);
$pdf->Cell(40,10,‘Hello World!’);
$pdf->Output();
Fatal error: Class ‘FPDF’ not found in C:Program Files (x86)NetMakev5wwwrootscriptcaseappSVSBgrid_blzgrid_blz.php on line 1521
sc_include_lib(“FPDF”);
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont(‘Arial’,‘B’,16);
$pdf->Cell(40,10,‘Hello World!’);
$pdf->Output();
Error
Cannot modify header information - headers already sent by (output started at C:Program Files (x86)NetMakev5wwwrootscriptcaseappSVSBgrid_blzgrid_blz.php:1512)
FPDF error: Some data has already been output to browser, can’t send PDF file2
How to do that …?
Best regards
Uwe Pfeiffer