By: Lindomar - bahia
Subreports again
2002-09-02 06:03
Thaks Teodord for your last message to me.
Now, i'm with a problem when i want put two subreports.
The second stay over on first.
Like this:
Subreport R1
Subreport R2
The result is only:
Subreport R2
The first(R1) stay back at R2.
I don't know if you understand me...
*********************************
...
<detail>
<band height="0">
<elementGroup>
<subreport isUsingCache="true">
<reportElement x="0" y="0" width="555" height="0"/>
<subreportParameter name="ofrfnbr">
<subreportParameterExpression>
$F{oftoornbr}
</subreportParameterExpression>
</subreportParameter>
<connectionExpression>
$P{REPORT_CONNECTION}
</connectionExpression>
<subreportExpression class="java.lang.String">
"report1.jasper"
</subreportExpression>
</subreport>
<subreport isUsingCache="true">
<reportElement x="0" y="10" width="555" height="0"/>
<subreportParameter name="ofrfnbr">
<subreportParameterExpression>
$F{oftoornbr}
</subreportParameterExpression>
</subreportParameter>
<connectionExpression>
$P{REPORT_CONNECTION}
</connectionExpression>
<subreportExpression class="java.lang.String">
"report2.jasper"
</subreportExpression>
</subreport>
</elementGroup>
</band>
</detail>
...
************************************************
Thanks again.
By: Teodor Danciu - teodord
RE: Subreports again
2002-09-02 06:09
Hi,
Use positionType="Float" for R2.
Good luck!
Teodor
By: Lindomar - bahia
RE: Subreports again
2002-09-02 07:10
Ok Teodor, but sorry because I disturb you with this problem...
I put positionType, but is showing this exception:
****
Parse Error at line -1 column -1: Attribute "positionType" with value "float" mu
st have a value from the list "Float FixRelativeToTop FixRelativeToBottom ".
org.xml.sax.SAXParseException: Attribute "positionType" with value "float" must
have a value from the list "Float FixRelativeToTop FixRelativeToBottom ".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er
rorHandlerWrapper.java:223)
*****
I searched about keyword "FixRelativeToTop" in Forum and docs, but i didn t find.
Thaks in advanced.
By: Teodor Danciu - teodord
RE: Subreports again
2002-09-02 07:46
It's "Float", not "float".
By: Lindomar - bahia
RE: Subreports again..
2002-09-02 10:28
Oh God!! I don't know what i say...but thanks for your patience... :)
Teodor, the model of my report is following:
****
[Title]
[some words]
[detail]
->a new page with some words
->list of products A ( this will take various pages)
->another new page with some words
->list of products B ( this will take various pages)
[summary]
********
Now a question, How do i my xml file with this struct?
If i put subreports (text1,reportA,text2,reportB) in tag <detail>, they are staying in all pages generates.
Thanks again!
By: Teodor Danciu - teodord
RE: Subreports again..
2002-09-02 23:26
Hi,
This problem is already fixed in the new version
I'm trying to release this week.
Thank you,
Teodor
By: kevin chan - kc1967
RE: Subreports again (PAGE_NUMBER = NULL) ?
2002-09-06 07:37
Hi,
I need to generate a report with many database, and I use subreport for each page and one database. It works ok, but when I want to add a page number in each page, the $F{PAGE_NUMBER} is null. Why ?
Please Help !!
Master.xml
<group name="AAA" isStartNewPage="true">
<groupExpression>
$F{CLIENT_ID}
</groupExpression>
<groupHeader>
<band height="400">
<subreport isUsingCache="false">
<reportElement x="-20" y="-30" width="500" height="400"/>
-----
---
</subreport>
</band>
</groupHeader>
<groupFooter>
<band height="0"/>
</groupFooter>
</group>
(ps. there are many Groups with subreport in the master.xml and the pageFooter of Master.xml is shown below)
<pageFooter>
<band height="20">
<line>
<reportElement x="0" y="10" width="515" height="0"/>
<graphicElement stretchType="NoStretch"/>
</line>
<textField evaluationTime="Now">
<reportElement x="200" y="20" width="80" height="15"/>
<textElement textAlignment="Right"/>
<textFieldExpression class="java.lang.String">
"Page " + String.valueOf($V{PAGE_NUMBER}) + " of"
</textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="280" y="20" width="75" height="15"/>
<textElement textAlignment="Left"/>
<textFieldExpression class="java.lang.String">
" " + String.valueOf($V{PAGE_NUMBER})
</textFieldExpression>
</textField>
</band>
</pageFooter>
The result is "Page null of 10" in each page footer, if there are totally 10 pages of the report.
By: Teodor Danciu - teodord
RE: Subreports again (PAGE_NUMBER = NULL) ?
2002-10-15 14:22
Hi,
Try the new 0.4.2 version.
I have just fixed some little bugs that have
to do with your problem.
Thank you,
Teodor
Subreports again
2002-09-02 06:03
Thaks Teodord for your last message to me.
Now, i'm with a problem when i want put two subreports.
The second stay over on first.
Like this:
Subreport R1
Subreport R2
The result is only:
Subreport R2
The first(R1) stay back at R2.
I don't know if you understand me...
*********************************
...
<detail>
<band height="0">
<elementGroup>
<subreport isUsingCache="true">
<reportElement x="0" y="0" width="555" height="0"/>
<subreportParameter name="ofrfnbr">
<subreportParameterExpression>
$F{oftoornbr}
</subreportParameterExpression>
</subreportParameter>
<connectionExpression>
$P{REPORT_CONNECTION}
</connectionExpression>
<subreportExpression class="java.lang.String">
"report1.jasper"
</subreportExpression>
</subreport>
<subreport isUsingCache="true">
<reportElement x="0" y="10" width="555" height="0"/>
<subreportParameter name="ofrfnbr">
<subreportParameterExpression>
$F{oftoornbr}
</subreportParameterExpression>
</subreportParameter>
<connectionExpression>
$P{REPORT_CONNECTION}
</connectionExpression>
<subreportExpression class="java.lang.String">
"report2.jasper"
</subreportExpression>
</subreport>
</elementGroup>
</band>
</detail>
...
************************************************
Thanks again.
By: Teodor Danciu - teodord
RE: Subreports again
2002-09-02 06:09
Hi,
Use positionType="Float" for R2.
Good luck!
Teodor
By: Lindomar - bahia
RE: Subreports again
2002-09-02 07:10
Ok Teodor, but sorry because I disturb you with this problem...
I put positionType, but is showing this exception:
****
Parse Error at line -1 column -1: Attribute "positionType" with value "float" mu
st have a value from the list "Float FixRelativeToTop FixRelativeToBottom ".
org.xml.sax.SAXParseException: Attribute "positionType" with value "float" must
have a value from the list "Float FixRelativeToTop FixRelativeToBottom ".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er
rorHandlerWrapper.java:223)
*****
I searched about keyword "FixRelativeToTop" in Forum and docs, but i didn t find.
Thaks in advanced.
By: Teodor Danciu - teodord
RE: Subreports again
2002-09-02 07:46
It's "Float", not "float".
By: Lindomar - bahia
RE: Subreports again..
2002-09-02 10:28
Oh God!! I don't know what i say...but thanks for your patience... :)
Teodor, the model of my report is following:
****
[Title]
[some words]
[detail]
->a new page with some words
->list of products A ( this will take various pages)
->another new page with some words
->list of products B ( this will take various pages)
[summary]
********
Now a question, How do i my xml file with this struct?
If i put subreports (text1,reportA,text2,reportB) in tag <detail>, they are staying in all pages generates.
Thanks again!
By: Teodor Danciu - teodord
RE: Subreports again..
2002-09-02 23:26
Hi,
This problem is already fixed in the new version
I'm trying to release this week.
Thank you,
Teodor
By: kevin chan - kc1967
RE: Subreports again (PAGE_NUMBER = NULL) ?
2002-09-06 07:37
Hi,
I need to generate a report with many database, and I use subreport for each page and one database. It works ok, but when I want to add a page number in each page, the $F{PAGE_NUMBER} is null. Why ?
Please Help !!
Master.xml
<group name="AAA" isStartNewPage="true">
<groupExpression>
$F{CLIENT_ID}
</groupExpression>
<groupHeader>
<band height="400">
<subreport isUsingCache="false">
<reportElement x="-20" y="-30" width="500" height="400"/>
-----
---
</subreport>
</band>
</groupHeader>
<groupFooter>
<band height="0"/>
</groupFooter>
</group>
(ps. there are many Groups with subreport in the master.xml and the pageFooter of Master.xml is shown below)
<pageFooter>
<band height="20">
<line>
<reportElement x="0" y="10" width="515" height="0"/>
<graphicElement stretchType="NoStretch"/>
</line>
<textField evaluationTime="Now">
<reportElement x="200" y="20" width="80" height="15"/>
<textElement textAlignment="Right"/>
<textFieldExpression class="java.lang.String">
"Page " + String.valueOf($V{PAGE_NUMBER}) + " of"
</textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="280" y="20" width="75" height="15"/>
<textElement textAlignment="Left"/>
<textFieldExpression class="java.lang.String">
" " + String.valueOf($V{PAGE_NUMBER})
</textFieldExpression>
</textField>
</band>
</pageFooter>
The result is "Page null of 10" in each page footer, if there are totally 10 pages of the report.
By: Teodor Danciu - teodord
RE: Subreports again (PAGE_NUMBER = NULL) ?
2002-10-15 14:22
Hi,
Try the new 0.4.2 version.
I have just fixed some little bugs that have
to do with your problem.
Thank you,
Teodor
0 Answers:
No answers yet