Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Problem with Page breaks
Problem with Page breaks [message #262603] Tue, 04 December 2007 07:41 Go to next message
Eclipse UserFriend
Originally posted by: Luna_u.interia.pl

Hi,

I wont to insert page break to report. In table I have a group witch
consist of some items like Text and Data. When I use ALWAYS page break
after group it works and stretch my group only in web viewer in pdf it's
OK.
But why is group stretched in web viewer?

I want to inset AUTO page break after group and AVOID page break inside
group. In some raison when I view report in web viewer all report is on
one page (that's OK) but after I export report to PDF page break doesn't
work. I have page breaks inside group.

I use BIRT in version 2.2.1.

Maybe somebody know what's going on?


Thanks for help,

Sara
Re: Problem with Page breaks [message #262626 is a reply to message #262603] Tue, 04 December 2007 14:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Sara,

Can you post a screenshot of the issue? I am not certain what you mean
by strech my group only in web viewer.

Jason

Sara wrote:
> Hi,
>
> I wont to insert page break to report. In table I have a group witch
> consist of some items like Text and Data. When I use ALWAYS page break
> after group it works and stretch my group only in web viewer in pdf it's
> OK. But why is group stretched in web viewer?
>
> I want to inset AUTO page break after group and AVOID page break inside
> group. In some raison when I view report in web viewer all report is on
> one page (that's OK) but after I export report to PDF page break doesn't
> work. I have page breaks inside group.
> I use BIRT in version 2.2.1.
> Maybe somebody know what's going on?
>
> Thanks for help,
>
> Sara
>
Re: Problem with Page breaks [message #262683 is a reply to message #262626] Wed, 05 December 2007 08:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Luna_u.interia.pl

Hi Jason,

I mean that, when I insert ALWAYS Page Break after Group, I want to have a
group in my report like:
http://img455.imageshack.us/my.php?image=report1bh4.png
but I have in web viewer something like:
http://img451.imageshack.us/my.php?image=report2wt0.png

When I export it to pdf then it looks OK like in first link.


Actually, I want to inset AUTO page break after group and AVOID page break
inside group. I don't want to divide group because I have to export it to
pdf and later print it so it has to look OK.
In some raison when I export report to PDF page break doesn't work and I
have page breaks inside this group, witch you see in first link.

Thanks again,
Sara
Re: Problem with Page breaks [message #262724 is a reply to message #262683] Wed, 05 December 2007 16:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Sara,

For some reason I am having a problem viewing the images, can you email
them to me?

Jason

Sara wrote:
> Hi Jason,
>
> I mean that, when I insert ALWAYS Page Break after Group, I want to have
> a group in my report like:
> http://img455.imageshack.us/my.php?image=report1bh4.png
> but I have in web viewer something like:
> http://img451.imageshack.us/my.php?image=report2wt0.png
>
> When I export it to pdf then it looks OK like in first link.
>
>
> Actually, I want to inset AUTO page break after group and AVOID page
> break inside group. I don't want to divide group because I have to
> export it to pdf and later print it so it has to look OK.
> In some raison when I export report to PDF page break doesn't work and I
> have page breaks inside this group, witch you see in first link.
>
> Thanks again,
> Sara
>
>
>
Re: Problem with Page breaks [message #262789 is a reply to message #262724] Thu, 06 December 2007 07:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Luna_u.interia.pl

Jason,

Of course I can. Unfortunately, I don't know how to send email to you
because I didn't see your email address :( .
Could you teach me how to do it ?

Best regards,
Sara
Re: Problem with Page breaks [message #262795 is a reply to message #262789] Thu, 06 December 2007 07:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Bernd.Laengerich.web.de

Hi Sara,

Sara wrote:

> because I didn't see your email address :( . Could you teach me how to

I would expect jasonweathersby@alltel.net from the header to work.

Bernd
Re: Problem with Page breaks [message #262869 is a reply to message #262795] Fri, 07 December 2007 08:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Luna_u.interia.pl

Hi Jason,

I don't know why but I can't email my pictures to you (because of xxxxxxxx
in email address )

So, one more time I attach links to my photos.

On my pictures there isn't any words because I cut it. There is only
basic shape of my group from report. Of course, in real there is a lot of
text in each of this tree tables. Now there is only something like XXX
which means that there is some words.

When I insert ALWAYS Page Break after Group, I want to have a group in my
report like you can see on screen report1.jpg
(http://img359.imageshack.us/my.php?image=report1eu8.png)
but I have in web viewer something like: report2.jpg
(http://img363.imageshack.us/my.php?image=report2hu8.png).
When I export it to pdf then it looks OK like in first picture.

But the most important is, how to insert AUTO page break after group and
AVOID page break inside group because I need it and it doesn't work. I
want to export data from report to pdf and there can't be page breaks
inside group.

Thanks for help.

Best Regards,
Sara
Re: Problem with Page breaks [message #262925 is a reply to message #262869] Fri, 07 December 2007 18:05 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Sara,

Is the setting in the group editor not working?

Look at the attached report.

Jason

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.15"
id="1">
<property name="createdBy">Eclipse BIRT Designer Version
2.2.1.r221_v20070924 Build &lt;2.2.0.v20070924-1550></property>
<property name="units">in</property>
<property name="comments">Copyright (c) 2007 &lt;&lt;Your Company
Name here>></property>
<html-property name="description">Creates a blank report with no
predefined content.</html-property>
<text-property name="displayName">Blank Report</text-property>
<property name="iconFile">/templates/blank_report.gif</property>
<data-sources>
<oda-data-source
extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source"
id="6">
<text-property name="displayName"></text-property>
<property
name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver </property>
<property name="odaURL">jdbc:classicmodels:sampledb</property>
<property name="odaUser">ClassicModels</property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set
extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
name="Data Set" id="7">
<list-property name="columnHints">
<structure>
<property name="columnName">ORDERNUMBER</property>
<property name="displayName">ORDERNUMBER</property>
</structure>
<structure>
<property name="columnName">PRODUCTCODE</property>
<property name="displayName">PRODUCTCODE</property>
</structure>
<structure>
<property name="columnName">QUANTITYORDERED</property>
<property name="displayName">QUANTITYORDERED</property>
</structure>
<structure>
<property name="columnName">PRICEEACH</property>
<property name="displayName">PRICEEACH</property>
</structure>
<structure>
<property name="columnName">ORDERLINENUMBER</property>
<property name="displayName">ORDERLINENUMBER</property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">ORDERNUMBER</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">PRODUCTCODE</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">QUANTITYORDERED</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">PRICEEACH</property>
<property name="dataType">float</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">ORDERLINENUMBER</property>
<property name="dataType">integer</property>
</structure>
</list-property>
</structure>
<property name="dataSource">Data Source</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">ORDERNUMBER</property>
<property name="nativeName">ORDERNUMBER</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">PRODUCTCODE</property>
<property name="nativeName">PRODUCTCODE</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">QUANTITYORDERED</property>
<property name="nativeName">QUANTITYORDERED</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">PRICEEACH</property>
<property name="nativeName">PRICEEACH</property>
<property name="dataType">float</property>
<property name="nativeDataType">8</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">ORDERLINENUMBER</property>
<property name="nativeName">ORDERLINENUMBER</property>
<property name="dataType">integer</property>
<property name="nativeDataType">5</property>
</structure>
</list-property>
<property name="queryText">select *
from orderdetails</property>
<xml-property name="designerValues"><![CDATA[<?xml
version="1.0" encoding="UTF-8"?>
<model:DesignValues
xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
<Version>1.0</Version>
<design:ResultSets derivedMetaData="true">
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>ORDERNUMBER</design:name>
<design:position>1</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>10</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>ORDERNUMBER</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>ORDERNUMBER</design:label>
<design:formattingHints>
<design:displaySize>11</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>PRODUCTCODE</design:name>
<design:position>2</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>15</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>PRODUCTCODE</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>PRODUCTCODE</design:label>
<design:formattingHints>
<design:displaySize>15</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>QUANTITYORDERED</design:name>
<design:position>3</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>10</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>QUANTITYORDERED</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>QUANTITYORDERED</design:label>
<design:formattingHints>
<design:displaySize>11</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>PRICEEACH</design:name>
<design:position>4</design:position>
<design:nativeDataTypeCode>8</design:nativeDataTypeCode>
<design:precision>15</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>PRICEEACH</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>PRICEEACH</design:label>
<design:formattingHints>
<design:displaySize>22</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>ORDERLINENUMBER</design:name>
<design:position>5</design:position>
<design:nativeDataTypeCode>5</design:nativeDataTypeCode>
<design:precision>5</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>ORDERLINENUMBER</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>ORDERLINENUMBER</design:label>
<design:formattingHints>
<design:displaySize>6</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
</design:resultSetColumns>
</design:resultSetDefinitions>
</design:ResultSets>
</model:DesignValues>
]]></xml-property>
</oda-data-set>
</data-sets>
<styles>
<style name="crosstab" id="4">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="crosstab-cell" id="5">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="detail" id="56">
<property name="backgroundColor">#BACAE2</property>
<property name="fontFamily">"Arial"</property>
<property name="fontSize">small</property>
<property name="paddingTop">0px</property>
<property name="paddingLeft">0px</property>
<property name="paddingBottom">0px</property>
<property name="paddingRight">0px</property>
</style>
<style name="headerfooter" id="57">
<property name="backgroundColor">#004080</property>
<property name="fontFamily">"Arial"</property>
<property name="fontSize">small</property>
<property name="fontWeight">bold</property>
<property name="color">#FFFFFF</property>
</style>
<style name="groupheader" id="58">
<property name="backgroundColor">#0080FF</property>
<property name="fontFamily">"Arial"</property>
<property name="fontSize">small</property>
<property name="fontWeight">bold</property>
<property name="color">#FFFFFF</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property
name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<table id="8">
<property name="width">100%</property>
<property name="dataSet">Data Set</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">ORDERNUMBER</property>
<expression
name="expression">dataSetRow["ORDERNUMBER"]</expression >
<property name="dataType">integer</property>
</structure>
<structure>
<property name="name">PRODUCTCODE</property>
<expression
name="expression">dataSetRow["PRODUCTCODE"]</expression >
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">QUANTITYORDERED</property>
<expression
name="expression">dataSetRow["QUANTITYORDERED"]</expression >
<property name="dataType">integer</property>
</structure>
<structure>
<property name="name">PRICEEACH</property>
<expression
name="expression">dataSetRow["PRICEEACH"]</expression>
<property name="dataType">float</property>
</structure>
<structure>
<property name="name">ORDERLINENUMBER</property>
<expression
name="expression">dataSetRow["ORDERLINENUMBER"]</expression >
<property name="dataType">integer</property>
</structure>
</list-property>
<column id="37"/>
<column id="38"/>
<column id="39"/>
<column id="40"/>
<column id="41"/>
<header>
<row id="9">
<property name="style">headerfooter</property>
<cell id="10">
<label id="11">
<text-property
name="text">ORDERNUMBER</text-property>
</label>
</cell>
<cell id="12">
<label id="13">
<text-property
name="text">PRODUCTCODE</text-property>
</label>
</cell>
<cell id="14">
<label id="15">
<text-property
name="text">QUANTITYORDERED</text-property>
</label>
</cell>
<cell id="16">
<label id="17">
<text-property
name="text">PRICEEACH</text-property>
</label>
</cell>
<cell id="18">
<label id="19">
<text-property
name="text">ORDERLINENUMBER</text-property>
</label>
</cell>
</row>
</header>
<group id="42">
<property name="groupName">NewTableGroup1</property>
<property name="interval">none</property>
<property name="sortDirection">asc</property>
<expression name="keyExpr">row["ORDERNUMBER"]</expression>
<structure name="toc">
<expression
name="expressionValue">row["ORDERNUMBER"]</expression>
</structure>
<property name="repeatHeader">true</property>
<property name="hideDetail">false</property>
<property name="pageBreakAfter">always</property>
<property name="pageBreakBefore">auto</property>
<property name="pageBreakInside">auto</property>
<header>
<row id="43">
<property name="style">groupheader</property>
<cell id="44">
<data id="55">
<property
name="resultSetColumn">ORDERNUMBER</property>
</data>
</cell>
<cell id="45"/>
<cell id="46"/>
<cell id="47"/>
<cell id="48"/>
</row>
</header>
</group>
<detail>
<row id="20">
<property name="style">detail</property>
<cell id="21"/>
<cell id="23">
<data id="24">
<property
name="resultSetColumn">PRODUCTCODE</property>
</data>
</cell>
<cell id="25">
<data id="26">
<property
name="resultSetColumn">QUANTITYORDERED</property>
</data>
</cell>
<cell id="27">
<data id="28">
<property
name="resultSetColumn">PRICEEACH</property>
</data>
</cell>
<cell id="29">
<data id="30">
<property
name="resultSetColumn">ORDERLINENUMBER</property>
</data>
</cell>
</row>
</detail>
</table>
</body>
</report>


Sara wrote:
> Hi Jason,
>
> I don't know why but I can't email my pictures to you (because of
> xxxxxxxx in email address )
>
> So, one more time I attach links to my photos.
> On my pictures there isn't any words because I cut it. There is only
> basic shape of my group from report. Of course, in real there is a lot of
> text in each of this tree tables. Now there is only something like XXX
> which means that there is some words.
> When I insert ALWAYS Page Break after Group, I want to have a group in my
> report like you can see on screen report1.jpg
> (http://img359.imageshack.us/my.php?image=report1eu8.png)
> but I have in web viewer something like: report2.jpg
> (http://img363.imageshack.us/my.php?image=report2hu8.png).
> When I export it to pdf then it looks OK like in first picture.
>
> But the most important is, how to insert AUTO page break after group and
> AVOID page break inside group because I need it and it doesn't work. I
> want to export data from report to pdf and there can't be page breaks
> inside group.
> Thanks for help.
>
> Best Regards,
> Sara
>
Previous Topic:Hex in Parameter Dropdown List
Next Topic:Reset PAGE NUMBER
Goto Forum:
  


Current Time: Sat Jul 20 23:24:25 GMT 2024

Powered by FUDForum. Page generated in 0.04179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top