Hai master..
I have problem with this php code
i want to create a pdf file from crystal report which is connected to mssql database.
currently i set no password into database.
CODE
$my_report = 'C:\inetpub\wwwroot\Report\myreport.rpt';
$my_pdf = 'C:\inetpub\wwwroot\Report\myreport.pdf';
$webpath = 'http://localhost/report/myreport.pdf';
$ObjectFactory = New COM("CrystalReports.ObjectFactory.2");
$crapp = $ObjectFactory->CreateObject("CrystalRuntime.Application.9");
$crapp->LogOnServer('crdb_ado.dll','myserver','mydatabase','myuser','mypassword');
$creport = $crapp->OpenReport($my_report, 1);
$creport->ExportOptions->DiskFileName=$my_pdf;
$creport->ExportOptions->PDFExportAllPages=true;
$creport->ExportOptions->DestinationType=1;
$creport->ExportOptions->FormatType=31;
$creport->Export(false);
the problem is :
if i leave mypassword blank it's work
but, if i set a password its error.
anyone can help??
please advice.
*edit*