Jump to content
We've recently updated our Privacy Statement, available here ×

sruthyms

Members
  • Posts

    10
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by sruthyms

  1. I created a report using iReport and displaying in a PHP page. My problem is when I create a parameter and assign it a value, it displays in the preview of iReport but does not display in my PHP page. How can I solve this?

     

    My code is

    <?php

    //Import the PhpJasperLibrary
    include_once('PhpJasperLibrary/tcpdf/tcpdf.php');
    include_once("PhpJasperLibrary/PHPJasperXML.inc.php");
    //database connection details
    $server="localhost";
    $db="mydb";
    $user="root";
    $pass="";
    $version="0.8b";
    $pgport=5432;
    $pchartfolder="class/pchart2"; 
    //display errors should be off in the php.ini file
    ini_set('display_errors', 0);
    //setting the path to the created jrxml file
    $xml =  simplexml_load_file("report/param1.jrxml");
    $PHPJasperXML = new PHPJasperXML();
    $PHPJasperXML->arrayParameter=array("acc_id"=>$P{parameter1})‌​);
    $PHPJasperXML->xml_dismantle($xml);
    $PHPJasperXML->transferDBtoArray($server,$user,$pass,$db);
    $PHPJasperXML->outpage("D");    //page output method I:standard output  D:Download file
    ?>
     
    What is the problem in my code.Anybody plz help its very urgent
  2. Hai Aisu,

     

            add the below code in your jrxml file.

    <background>

            <band height="842" splitType="Stretch">

                <staticText>

                    <reportElement mode="Opaque" x="0" y="0" width="595" height="842" backcolor="#FFFF00"/>

                    <textElement/>

                    <text><![CDATA[]]></text>

                </staticText>

            </band>

        </background>

  3. Hai,

    I create a report using ireport designer 4.5.0 and insert a graph in summary part. My problem is when click on the XML button i got the source code of summary is

    <summary>

    <band height="164" splitType="Stretch">

    <barChart>

    <chart>

    <reportElement x="71" y="38" width="404" height="100"/>

    <chartTitle/>

    <chartSubtitle/>

    <chartLegend/>

    </chart>

    <categoryDataset>

    <categorySeries>

    <seriesExpression><![CDATA[""]]></seriesExpression>

    <categoryExpression><![CDATA[$F{exam_details_exam_name}]]></categoryExpression>

    <valueExpression><![CDATA[$F{exam_details_time}]]></valueExpression>

    </categorySeries>

    </categoryDataset>

    <barPlot>

    <plot/>

    <itemLabel/>

    </barPlot>

    </barChart>

    </band>

    </summary>

     

    but in jrxml source file it only displays

     

    <summary>

    <band height="42" splitType="Stretch"/>

    </summary>

     

    so i did not get the graph in my php page. when add the above code i got a blank page. Why this occure?? please give me an answer.

  4. I download "php-sample.zip" (http://community.jaspersoft.com/project/php-client/releases) and execute in wamp. I get this warning
     Warning: require_once(SOAP/Client.php) [function.require-once]: failed to open stream: No such file or directory in D:wampwwwjaspclient.php on line 10
     
     and a fatalerror
      Fatal error: require_once() [function.require]: Failed opening required 'SOAP/Client.php' (include_path='.;C:phppear') in D:wampwwwjaspclient.php on line 10
     
      how to avoid this error? What are the steps to implement a jasperreports in php and which tools are needed to implement reports.please help..

×
×
  • Create New...