From:             djogopatrao at gmail dot com
Operating system: Windows XP
PHP version:      5.1.2
PHP Bug Type:     COM related
Bug description:  ReadRecords Method (Crystal Reports XI) Hangs

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 bug report at http://bugs.php.net/?id=36959&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36959&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36959&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36959&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36959&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36959&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36959&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36959&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36959&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36959&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36959&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36959&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36959&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36959&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36959&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36959&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36959&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36959&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36959&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36959&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36959&r=mysqlcfg

Reply via email to