Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Please test if you can create a OCI connection or PDO connection to your Oracle8i successfully. Then you could use KoolReport's either OracleDataSource or PdoDataSource:
https://www.koolreport.com/docs/datasources/oracledatasource/
https://www.koolreport.com/docs/datasources/pdodatasource/
Let us know if you have any problem. Tks,
i tried to create php file
<?php
class MyReport extends \koolreport\KoolReport
{
public function settings()
{
return array(
"dataSources"=>array(
"oracle_mydb"=>array(
'connectionString' => 'localhost:11000/XE',
'username' => 'username',
'password' => 'password',
'class' => "\koolreport\datasources\OracleDataSource",
),
)
);
}
public function setup()
{
$this->src('oracle_finance')
->query("SELECT * FROM paymst where fyear=2021")
->pipe(..);
->pipe(..);
->pipe($this->dataStore('Finance'));
}
}
But i am not able to connect it to Oracle8i and generate report... pls help
We need to know what error is to debug it. Pls turn on your error reporting in php.ini (display_errors = on), restart your http server, and add the following commands to the beginning of your index.php:
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
include "MyReport.php";
$report = new MyReport().
//...
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo