note 66424 added to class.com
| From: | hwcshirley at gmail dot com | Date: | Mon, 22 May 2006 05:59:10 +0000 |
| Subject: | note 66424 added to class.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111806@lists.php.net to get a copy of this message | ||
Reply to: djogopatrao at gmail dot com
I have change little bit your code. Its work.
$COM_Object = "CrystalDesignRunTime.Application";
$my_report = "C:\\appserv\\www\\mc\\test.rpt";
$my_pdf = "C:\\appserv\www\\mc\\test.pdf";
$crapp= New COM($COM_Object) or die("Unable to Create Object");
$creport = $crapp->OpenReport($my_report, 1);
$creport->ReadRecords(); // attention!
$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: 203.194.196.146
Probable Submitter: 210.0.203.34
----
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/class.com.php
Edit -- http://master.php.net/note/edit/66424
Del: integrated -- http://master.php.net/note/delete/66424/integrated
Del: useless -- http://master.php.net/note/delete/66424/useless
Del: bad code -- http://master.php.net/note/delete/66424/bad+code
Del: spam -- http://master.php.net/note/delete/66424/spam
Del: non-english -- http://master.php.net/note/delete/66424/non-english
Del: in docs -- http://master.php.net/note/delete/66424/in+docs
Del: other reasons-- http://master.php.net/note/delete/66424
Reject -- http://master.php.net/note/reject/66424
Search -- http://master.php.net/manage/user-notes.php