Welcome Guest, Not a member yet? Register   Sign In
can't view report phpjasperxml
#1

[eluser]Unknown[/eluser]
i've something problem with report phpjasperxml

i've make name file controllers : mydata.php

I also have followed the following ways :
Code:
Copy PHPJasperXML.inc to application/libraries.
Rename the file to PHPJasperXML.php.
Copy the folder fpdf to application/libraries.
Insert the following line to PHPJasperXML.php after the <?php tag:
include_once('./fpdf/FPDF.php');

You should now be able to load the library in your controller using
$this->load->library('PHPJasperXML');

view code:
controllers : mydata.php
Code:
function report()
    {
        $this->load->library('fpdf/fpdf.php');
        $this->load->library('PHPJasperXML');
        
        $xml =  simplexml_load_file('mydata.jrxml'); ---> Line Number 115


        @$PHPJasperXML = new PHPJasperXML();
        @$PHPJasperXML->debugsql=false;
        @$PHPJasperXML->arrayParameter=$arrayParameters;
        @$PHPJasperXML->xml_dismantle($xml);

        @$PHPJasperXML->transferDBtoArray('localhost','root','','dbbmhskr');
        @$PHPJasperXML->outpage("I");    //page output method I:standard output  D:Download file
            
    }

message error:
Code:
A PHP Error was encountered

Severity: Warning

Message: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "mydata.jrxml"

Filename: controllers/mydata.php

Line Number: 115

can anyone help me...?

sorry for my bad english ^_^
#2

[eluser]Kamarg[/eluser]
It looks to me like you probably need to provide the correct path to mydata.jrxml.




Theme © iAndrew 2016 - Forum software by © MyBB