note 63228 added to ref.com

From: Date: Thu, 16 Mar 2006 14:34:06 +0000
Subject: note 63228 added to ref.com
Groups: php.notes 
Request: Send a blank email to php-notes+get-105930@lists.php.net to get a copy of this message
This function converts the crystal report in file $my_report to a PDF file $my_pdf. Exceptions may raise, so put it in a try..catch block. I struggled so hard to get this done... any comments, please contact me. function exportCrystalReportToPDF( $my_report, $my_pdf ) { // by dfcp/mar/06 $ObjectFactory= New COM("CrystalReports11.ObjectFactory.1"); $crapp = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application"); $creport = $crapp->OpenReport($my_report, 1); $creport->ExportOptions->DiskFileName=$my_pdf; $creport->ExportOptions->PDFExportAllPages=true; $creport->ExportOptions->DestinationType=1; // Export to File $creport->ExportOptions->FormatType=31; // Type: PDF $creport->Export(false); } ---- Server IP: 66.163.161.117 Probable Submitter: 201.6.72.67 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.com.php Edit -- http://master.php.net/note/edit/63228 Del: integrated -- http://master.php.net/note/delete/63228/integrated Del: useless -- http://master.php.net/note/delete/63228/useless Del: bad code -- http://master.php.net/note/delete/63228/bad+code Del: spam -- http://master.php.net/note/delete/63228/spam Del: non-english -- http://master.php.net/note/delete/63228/non-english Del: in docs -- http://master.php.net/note/delete/63228/in+docs Del: other reasons-- http://master.php.net/note/delete/63228 Reject -- http://master.php.net/note/reject/63228 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105930) next »