Jump to content
Changes to the Jaspersoft community edition download ×

multiple subreports / printing problems


Recommended Posts

By: Roberto Gonzalez Rocha - rgrocha

multiple subreports / printing problems

2002-08-21 12:43

Hi,

I'm using a master reports with two subreports on its details section. The two subreports as the reportElement element with the positionType="Float" attribute so they "flow" as the first reports grows. The first subreports will be only have a few lines and the seconds can get lots of lines.

 

Problem 1: arises when the reports spans more than one page. The first subreport gets repeated at the top of each page just before the (normal) second subreport listing!

 

Problem 2: I use the reports for both generating a pdf file and printing using the jrprint file. The pdf gets generated right (apart from problem 1) but the printing is wrong. It prints something like two columns on the paper each of them with what should be the whole page print.

 

My master report detail code is:

<detail>

<band height="20">

<subreport isUsingCache="true">

<reportElement positionType="Float" x="0" y="0" width="555" height="0" backcolor="#FFFFFF"/>

<subreportParameter name="ClientId">

<subreportParameterExpression>$P{ClientCode}</subreportParameterExpression>

</subreportParameter>

<subreportParameter name="InvoiceId">

<subreportParameterExpression>$P{InvoiceId}</subreportParameterExpression>

</subreportParameter>

<connectionExpression>$P{DSConnection}</connectionExpression>

<subreportExpression class="java.lang.String">$P{PaymentsReport}</subreportExpression>

</subreport>

 

<subreport isUsingCache="true">

<reportElement positionType="Float" x="0" y="1" width="555" height="0" backcolor="#FFFFFF"/>

<subreportParameter name="InvoiceId">

<subreportParameterExpression>$P{InvoiceId}</subreportParameterExpression>

</subreportParameter>

<connectionExpression>$P{DSConnection}</connectionExpression>

<subreportExpression class="java.lang.String">$P{CallsReport}</subreportExpression>

</subreport>

</band>

</detail>

 

 

any clue?

 

Thanks

 

 

 

By: Teodor Danciu - teodord

RE: multiple subreports / printing problems

2002-08-22 00:11

 

Hi,

 

Your problem number 1 should disappear once

I'll release the new version of the library.

I have finished all (I think) those remaining features

of the "Quick Reference" that have to do with

customizing the page breaks.

I test everything these days and I hope the release

will come sometime next week.

 

As for the problem number 2, are you talking about

having two report pages printed on the same side

of your paper?

 

Thank you,

Teodor

 

 

 

By: Roberto Gonzalez Rocha - rgrocha

RE: multiple subreports / printing problems

2002-08-22 01:13

>As for the problem number 2, are you talking about

>having two report pages printed on the same side

>of your paper?

 

No, I meant the same page get printed on the same side of the paper twice.

 

 

+----------+

| A |

| A |

| A |

+----------+

gets printed as

+----------+

| A | A |

| A | A |

| A | A |

+----------+

 

I can send you the xml, jprint and pdf files if you want them.

 

Thanks,

__

Roberto

 

 

By: Teodor Danciu - teodord

RE: multiple subreports / printing problems

2002-08-22 02:11

 

Hi,

 

Please send me those 3 files at teodord@hotmail.com.

 

Thank you,

Teodor

 

 

 

By: Teodor Danciu - teodord

RE2: multiple subreports / printing problems

2002-08-23 00:21

 

Hi,

 

I have tested your .jrprint file and it looks exactly

the same as the PDF file when viewed with the

JasperViewer.

 

Also, I have printed a page (page 2) from the

JasperViewer and everything seems to be OK,

except from the last 5 bottom rows that were not

printed, probably due to my printer's default paper

margins.

 

I can only imagine that in your case, the content

of one page should be somehow shrank to half its

size, both on the horizontal and the vertical axes,

so that it could fit twice on the same page.

I've never heard of such a weird behavior before and

I don't know what to tell you. I only suspect there is

something wrong with your printer settings.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...