rdmardegam, olha o código aí…
[color=blue][b][i]Me ajude por favor…
Eu não estou exportando para pdf não…
O SUBREPORT_DIR está como endereço direitinho… num é iso não!![/i][/b][/color]
RelRestrições.jrxml (esse é o relatório A)
[code]<?xml version="1.0" encoding="UTF-8" ?>
<parameter name="SUBREPORT_DIR" isForPrompting="true" class="java.lang.String">
<defaultValueExpression ><![CDATA["C:\\Users\\cliente\\Documents\\NetBeansProjects\\SCIHE\\relatorios\\"]]></defaultValueExpression>
</parameter>
<parameter name="cdprofessor" isForPrompting="false" class="java.lang.Integer">
<defaultValueExpression ><![CDATA[$F{cdprofessor}]]></defaultValueExpression>
</parameter>
<queryString><![CDATA[SELECT p.cdprofessor, status, nmprofessor, sgcurso, nmcurso, motivo, date_format(dshora, '%h:%i'), nmdia
FROM tbprofessor p, tbcurso c, tbrestricao r, tbhora h, tbdia d
WHERE status = 'true’
AND p.cdcurso = c.cdcurso
AND r.diasemana = d.cddia
AND r.horario = h.cdhora
AND p.cdprofessor = r.cdprofessor
ORDER BY nmprofessor, nmdia, dshora]]>
<field name="cdprofessor" class="java.lang.Integer"/>
<field name="status" class="java.lang.String"/>
<field name="nmprofessor" class="java.lang.String"/>
<field name="sgcurso" class="java.lang.String"/>
<field name="nmcurso" class="java.lang.String"/>
<field name="motivo" class="java.lang.String"/>
<field name="date_format(dshora, '%h:%i')" class="java.lang.String"/>
<field name="nmdia" class="java.lang.String"/>
<background>
<band height="0" isSplitAllowed="true" >
</band>
</background>
<title>
<band height="0" isSplitAllowed="true" >
</band>
</title>
<pageHeader>
<band height="91" isSplitAllowed="true" >
<line direction="TopDown">
<reportElement
x="0"
y="90"
width="536"
height="0"
key="line-1"/>
<graphicElement stretchType="NoStretch"/>
</line>
<image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="6"
y="4"
width="52"
height="41"
key="image-1"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<graphicElement stretchType="NoStretch"/>
<imageExpression class="java.lang.String"><![CDATA["C:\\Users\\cliente\\Documents\\NetBeansProjects\\Imagens\\Logo.jpg"]]></imageExpression>
</image>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="6"
y="50"
width="525"
height="35"
key="textField-1"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Verdana" size="14"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Restrições - "+$F{nmcurso}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="30" isSplitAllowed="true" >
<staticText>
<reportElement
x="7"
y="6"
width="181"
height="19"
key="staticText-2"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Left">
<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="12" isBold="true"/>
</textElement>
<text><![CDATA[Professor]]></text>
</staticText>
<staticText>
<reportElement
x="193"
y="6"
width="172"
height="19"
key="staticText-3"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Left">
<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="12" isBold="true"/>
</textElement>
<text><![CDATA[Restrições]]></text>
</staticText>
<staticText>
<reportElement
x="368"
y="6"
width="98"
height="19"
key="staticText-4"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Left">
<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="12" isBold="true"/>
</textElement>
<text><![CDATA[Dia]]></text>
</staticText>
<staticText>
<reportElement
x="469"
y="6"
width="60"
height="19"
key="staticText-6"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Left">
<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="12" isBold="true"/>
</textElement>
<text><![CDATA[Horário]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="50" isSplitAllowed="true" >
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="7"
y="5"
width="181"
height="18"
key="textField"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font fontName="Verdana" size="12"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{nmprofessor}]]></textFieldExpression>
</textField>
<subreport isUsingCache="true">
<reportElement
x="183"
y="7"
width="346"
height="39"
key="subreport-1"/>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "subRelRestricoes.jasper"]]></subreportExpression>
</subreport>
</band>
</detail>
<columnFooter>
<band height="28" isSplitAllowed="true" >
<staticText>
<reportElement
x="474"
y="7"
width="24"
height="17"
key="staticText-5"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[pág.]]></text>
</staticText>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="501"
y="7"
width="26"
height="18"
key="textField"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<line direction="TopDown">
<reportElement
x="2"
y="2"
width="536"
height="0"
key="line-2"/>
<graphicElement stretchType="NoStretch"/>
</line>
</band>
</columnFooter>
<pageFooter>
<band height="0" isSplitAllowed="true" >
</band>
</pageFooter>
<summary>
<band height="0" isSplitAllowed="true" >
</band>
</summary>
[/code]
subRelRestrições.jrxml (esse é o relatório B)
[code]<?xml version="1.0" encoding="UTF-8" ?>
<queryString><![CDATA[SELECT p.cdprofessor, status, nmprofessor, sgcurso, nmcurso, motivo, date_format(dshora, '%h:%i'), nmdia
FROM tbprofessor p, tbcurso c, tbrestricao r, tbhora h, tbdia d
WHERE status = 'true’
AND p.cdcurso = c.cdcurso
AND r.diasemana = d.cddia
AND r.horario = h.cdhora
AND p.cdprofessor = r.cdprofessor
ORDER BY nmprofessor, nmdia, dshora]]>
<field name="cdprofessor" class="java.lang.Integer"/>
<field name="status" class="java.lang.String"/>
<field name="nmprofessor" class="java.lang.String"/>
<field name="sgcurso" class="java.lang.String"/>
<field name="nmcurso" class="java.lang.String"/>
<field name="motivo" class="java.lang.String"/>
<field name="date_format(dshora, '%h:%i')" class="java.lang.String"/>
<field name="nmdia" class="java.lang.String"/>
<background>
<band height="0" isSplitAllowed="true" >
</band>
</background>
<title>
<band height="0" isSplitAllowed="true" >
</band>
</title>
<pageHeader>
<band height="0" isSplitAllowed="true" >
</band>
</pageHeader>
<columnHeader>
<band height="0" isSplitAllowed="true" >
</band>
</columnHeader>
<detail>
<band height="50" isSplitAllowed="true" >
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="4"
y="3"
width="169"
height="44"
key="textField-1"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font fontName="Verdana" size="12"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{motivo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="175"
y="3"
width="97"
height="18"
key="textField-2"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font fontName="Verdana" size="12"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{nmdia}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="274"
y="3"
width="62"
height="18"
key="textField-3"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Justified">
<font fontName="Verdana" size="12"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{date_format(dshora, '%h:%i')} + "h"]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="0" isSplitAllowed="true" >
</band>
</columnFooter>
<pageFooter>
<band height="0" isSplitAllowed="true" >
</band>
</pageFooter>
<summary>
<band height="0" isSplitAllowed="true" >
</band>
</summary>
[/code]
:arrow: :arrow: :arrow:
[b]Acho que seria interessante eu te enviar por email o código jarper…
Eu vou dar um jeito aqui de te enviar…
rdmardegam, eu já te agradeço muito pela sua atenção viu!!!
[color=red]Bjoooo…[/color][/b]