hola amigos quiero imprimir un reporte con jaspersoft si me podrian ayudar por favor :
este es el codigo de reporte :
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4_Landscape" pageWidth="521" pageHeight="300" orientation="Landscape" columnWidth="481" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ccf267c9-0e66-458b-a5d6-412ead28f0f4">
<property name="com.jaspersoft.studio.data.sql.tables" value="d2ViY2FtLmFsdW1ub3MgQVMgLDkzLDE2MSxlZjU2MWJhMi0zZGFjLTRkOGEtOGQ4OC1jM2Q4OTE1
MjlmNDY7">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="cred">
<property name="ireport.zoom" value="1.0">
<property name="ireport.x" value="0">
<property name="ireport.y" value="0">
<parameter name="dirfotos" class="java.lang.String">
<parameterDescription><![CDATA[]]></parameterDescription>
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="id" class="java.lang.Long">
<defaultValueExpression><![CDATA[$P{id}]]></defaultValueExpression>
</parameter>
<queryString>
<![CDATA[select * from alumnos where id = $P{id}]]>
</queryString>
<field name="id" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="matricula" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="nombre" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="grupo" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="grado" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="imagen" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<detail>
<band height="175" splitType="Stretch">
<rectangle>
<reportElement x="-1" y="2" width="482" height="171" uuid="9fa5ed70-653e-4548-8651-0afdd7013a5f">
</rectangle>
<staticText>
<reportElement x="147" y="21" width="212" height="30" uuid="5bf67d6e-b9a8-4e47-b527-52ec25290130">
<box>
<topPen lineWidth="2.0">
<leftPen lineWidth="2.0">
<bottomPen lineWidth="2.0">
<rightPen lineWidth="2.0">
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="18" isBold="true">
</textElement>
<text><![CDATA[Credencial 2016]]></text>
</staticText>
<staticText>
<reportElement x="14" y="65" width="151" height="30" uuid="7a105800-8c26-4c17-8f67-868132d5aec3">
<box>
<topPen lineWidth="0.0">
<leftPen lineWidth="0.0">
<bottomPen lineWidth="0.0">
<rightPen lineWidth="0.0">
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="14" isBold="true">
</textElement>
<text><![CDATA[Alumno]]></text>
</staticText>
<textField>
<reportElement x="222" y="145" width="74" height="28" uuid="fbc708ca-20cc-42c5-9600-1f82702c7f83">
<box>
<topPen lineStyle="Solid" lineColor="#000000">
<leftPen lineStyle="Solid" lineColor="#000000">
<bottomPen lineStyle="Solid" lineColor="#000000">
<rightPen lineStyle="Solid" lineColor="#000000">
</box>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="true">
</textElement>
<textFieldExpression><![CDATA[$F{grupo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="329" y="153" width="100" height="15" uuid="0cd47421-6448-4f71-b7a8-ec6c9967e689">
<box>
<topPen lineStyle="Solid" lineColor="#000000">
<leftPen lineStyle="Solid" lineColor="#000000">
<bottomPen lineStyle="Solid" lineColor="#000000">
<rightPen lineStyle="Solid" lineColor="#000000">
</box>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="true">
</textElement>
<textFieldExpression><![CDATA[$F{grado}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="169" y="95" width="175" height="30" uuid="6227187d-b76c-460e-89d6-0a5262d0f31e">
<box>
<topPen lineStyle="Solid" lineColor="#000000">
<leftPen lineStyle="Solid" lineColor="#000000">
<bottomPen lineStyle="Solid" lineColor="#000000">
<rightPen lineStyle="Solid" lineColor="#000000">
</box>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="true">
</textElement>
<textFieldExpression><![CDATA[$F{nombre}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="169" y="120" width="150" height="30" uuid="6cdce80f-355d-486f-b345-2cbb16c7f799">
<box>
<topPen lineStyle="Solid" lineColor="#000000">
<leftPen lineStyle="Solid" lineColor="#000000">
<bottomPen lineStyle="Solid" lineColor="#000000">
<rightPen lineStyle="Solid" lineColor="#000000">
</box>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="true">
</textElement>
<textFieldExpression><![CDATA[$F{matricula}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="172" y="149" width="100" height="17" uuid="f17fbf7b-be63-4098-b2e2-fac7218d099b">
<box>
<topPen lineStyle="Solid" lineColor="#000000">
<leftPen lineStyle="Solid" lineColor="#000000">
<bottomPen lineStyle="Solid" lineColor="#000000">
<rightPen lineStyle="Solid" lineColor="#000000">
</box>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="true">
</textElement>
<text><![CDATA[grupo:]]></text>
</staticText>
<staticText>
<reportElement x="285" y="153" width="76" height="15" uuid="6a12e05f-8c53-4717-a744-1d5308bacfa4">
<box>
<topPen lineStyle="Solid" lineColor="#000000">
<leftPen lineStyle="Solid" lineColor="#000000">
<bottomPen lineStyle="Solid" lineColor="#000000">
<rightPen lineStyle="Solid" lineColor="#000000">
</box>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="true">
</textElement>
<text><![CDATA[grado:]]></text>
</staticText>
<image>
<reportElement x="58" y="105" width="73" height="70" uuid="3da485df-1f22-4bbe-9d55-d870114530d4">
<imageExpression><![CDATA[new File ($P{dirfotos} , $F{imagen})]]></imageExpression>
</image>
</band>
</detail>
</jasperReport>
este es el de php:
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
include_once('class/tcpdf/tcpdf.php');
include_once("class/PHPJasperXML.inc.php");
include_once ('setting.php');
$PHPJasperXML = new PHPJasperXML();
//$PHPJasperXML->debugsql=true;
$PHPJasperXML->arrayParameter=array("parameter1"=>1);
$PHPJasperXML->load_xml_file("sample1.jrxml");
$PHPJasperXML->transferDBtoArray($server,$user,$pass,$db);
$PHPJasperXML->outpage("I"); //page output method I:standard output D:Download file
?>
y su conexion bd:
<?php
$server="localhost";
$db="webcam";
$user="root";
$pass="";
$version="0.9d";
$pgport=5432;
$pchartfolder="./class/pchart2";
?>
ayuda lo intentado y puse los parametros que son dos pero no funciona y me marca error ayuda