CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 help me for url to pdf

Print topic Send  topic

Author Message
dellamir


Posts: 6
Posted: 11/03/2008, 10:28 PM

can anyone help me on how to make the php out put in .pdf file

i use html2pdf,

my error is:

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\Live\WB\reports1.php:738) in C:\xampp\htdocs\Live\WB\html2pdf\_fpdf\fpdf.php on line 1019
FPDF error: Some data has already been output, can't send PDF file
View profile  Send private message
dellamir


Posts: 6
Posted: 11/04/2008, 12:28 AM

new_page1.php >>

<?php
ob_start();
define("RelativePath", ".");
define("PathToCurrentPage", "/");
define("FileName", "reports1.php");
include_once(RelativePath . "/Common.php");
include_once(RelativePath . "/Template.php");
include_once(RelativePath . "/Sorter.php");
include_once(RelativePath . "/Navigator.php");
//End Include Common Files
require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');  
global $content;  
global $pdf;
...



new_page1_events.php >>
Page_BeforeOutput
{
        global $content;  
        global $pdf;  
	$content = ob_get_clean();  
	$pdf = new HTML2PDF('P','A4', 'en');  
     	$pdf->WriteHTML($content, isset($_GET['vuehtml']));  
    	$pdf->Output();
}

but the build pdf is an empty page.
help me pleaze
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.