Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help on FPDF in php with include_once

540814Oct 21 2006 — edited Jan 28 2007
hi! im trying to generate a pdf report using fpdf, but for some reason, i am not able to... here's my code im calling once a "sumbit" button is hit:

<?php

include_once('fpdf.php'); // Report Generation Tool
include_once('NewRequests.class.php');
include_once('Employees.class.php');
include_once('ProductCategories.class.php');

$cls_newReq = &new __cNewRequests;
$cls_employee = &new __cEmployees;
$cls_prodCat = &new __cProductCategories;

$_request = $cls_newReq->__displayRSMaster($_GET['docref'], $_GET['rsno']);
$_showItems = $cls_newReq->__displayRSDetails(0);

$_pdf = new FPDF();
$_pdf->AddPage();
$_pdf->SetFont('Arial','B',16);
$_pdf->Cell(40,10,'Hello World!');
$_pdf->Output();

?>


i am getting the ff: error and i am stuck here, so pls. kindly help me with this...:

FPDF error: Some data has already been output, can't send PDF file

the classes are my database manipulator to get the data... i did not use it (variables) to echo it but just to use it if that will work.

kindly help my guys! thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2007
Added on Oct 21 2006
5 comments
6,086 views