#36959 [Opn->Fbk]: ReadRecords Method (Crystal Reports XI) Hangs

From: Date: Mon, 03 Apr 2006 12:23:04 +0000
Subject: #36959 [Opn->Fbk]: ReadRecords Method (Crystal Reports XI) Hangs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95283@lists.php.net to get a copy of this message
ID: 36959 Updated by: tony2001@php.net Reported By: djogopatrao at gmail dot com -Status: Open +Status: Feedback Bug Type: COM related Operating System: Windows XP PHP Version: 5.1.2 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Please define "hangs" and add more information if possible. Previous Comments: ------------------------------------------------------------------------ [2006-04-03 14:10:35] djogopatrao at gmail dot com Description: ------------ In order to verify this, you need 1) crystal reports XI version 2 (free download for trial at www.businessobjects.com) 2) access to a database 3) a report that uses data from this database the code above hangs when invoking the ReadRecords method. A equivalent code was tested and worked OK under Visual Fox Pro. thanks dfcp Reproduce code: --------------- $my_report = "c:\\report1.rpt"; $my_pdf = "c:\\report1.pdf"; $ObjectFactory= New COM("CrystalReports115.ObjectFactory.1"); $crapp = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application"); $creport = $crapp->OpenReport($my_report, 1); $creport->ReadRecords(); //hangs here $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); Expected result: ---------------- It would create a file (name $my_pdf) with the report. Actual result: -------------- It hangs. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36959&edit=1

« previous php.bugs (#95283) next »