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

Printing on ontinuous form: Page feed error?


Recommended Posts

By: Keisuke Kumakura - kkuma

Printing on ontinuous form: Page feed error?

2002-09-19 00:03

Hi,

 

I am testing to print data on 8X5.5inch continuous form feeded by tractor and have the following problem:

 

The title "ABCDEFJHIJK"(refer to MyReport.xml below) gets printed at different y position on each page. It is printed roughly at y=30mm(from top edge) on the first page, at y=60mm on the second page, and so on.

 

Could anyone help me solve the problem.

 

Thanks in advance.

Kuma

 

MyReport.xml

<?xml version="1.0" encoding="Shift_JIS"?>

<!-- Another example: encoding="EUC_JP" -->

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN"

"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="InvoiceReport"

pageWidth="612" pageHeight="396" orientation="Portrait"

columnWidth="549"

topMargin="0" bottomMargin="0" leftMargin="54" rightMargin="9">

<field name="Field0" class="java.lang.String"/>

<title> <band height="0"/> </title>

<pageHeader>

<band height="96">

<staticText>

<reportElement x="0" y="49" width="226" height="18"/>

<textElement textAlignment="Left">

<font fontName="MS Mincho" size="18"/>

</textElement>

<text>ABCDEFGHIJK</text>

</staticText>

</band>

</pageHeader>

 

<columnHeader> <band height="11"/> </columnHeader>

 

<detail>

<band height="32">

<textField>

<reportElement x="0" y="12" width="100" height="12"/>

<textElement textAlignment="Left">

<font fontName="MS Mincho" size="12"/>

</textElement>

<textFieldExpression class="java.lang.String">

$F{Field0}

</textFieldExpression>

</textField>

</band>

</detail>

 

<columnFooter> <band height="48"/> </columnFooter>

<pageFooter> <band height="0"/> </pageFooter>

<summary> <band height="0"/> </summary>

</jasperReport>

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...