Re: Unexpected behavior in for memo field (pdf)

Bob Doan <[email protected]> Wed, 22 Mar 2006 10:55:58 -0500
Newsgroups gmane.text.rlib.user
Message-ID <[email protected]>
Odd.. Can you make me an simple PHP example that will illustrate this.

perhaps modify one of the existing ones in src/examples/php

Thanks

- bob


On Tue, 2006-03-21 at 14:58 -0700, Evan Gates wrote:
> I'm using a memo field in a break footer and in the PDF when the memo
> goes past a page break some strange things happen.
> 
> Right after the memo field is done the footer finishes as expected
> (horizontal line in my case).  However, instead of the header being
> printed it prints the first detail line and then the footer of the
> next break section.
> 
> After the footer it then prints the header of the break it should've
> printed in the first place and continues as expected but starting with
> the second record (since the first was printed above).
> 
> Here's some pictures to illustrate (the first picture is it working as
> expected second picture shows the error):
> 
> http://vershun.ath.cx/working.JPG
> 
> http://vershun.ath.cx/not_working.JPG
> 
> This has been tested on both the 1.3.6 and the new 1.3.7 releases.
> 
> My break is as follows:
> <Break name="break1" newpage="no" headernewpage="no">
> 			<BreakHeader>
> 				<Output>
> 					<Line>
> 					     <literal width="2" />
> 					     <literal>BJE# </literal>
> 						<field value="bje_all.BJE_ID" align="left" col="1" bold="Yes" />
> 						<literal width="4" />
> 					     <literal>Ref# </literal>
> 						<field value="bje_all.BJE_USER_BATCH" align="left" col="1" bold="Yes" />
> 						<literal width="4" />
> 					     <literal>Date: </literal>
> 						<field value="bje_all.BJE_DATE" align="left" col="1" bold="Yes" />
> 						<literal width="4" />
> 					     <literal>Ledger: </literal>
> 						<field value="bje_all.BJE_LEDGER_TYPE" align="left" col="1" bold="Yes" />
> 						<literal width="4" />
> 					     <literal>Jrnl ID: </literal>
> 						<field value="bje_all.BJE_SYSTEM_BATCH" align="left" col="1" bold="Yes" />
> 					</Line>
> 					<HorizontalLine size="1" bgcolor="'black'" indent="2" />
> 				</Output>								
> 			</BreakHeader>
> 			<BreakFields>
> 				<BreakField value="bje_all.BJE_ID"/>
> 			</BreakFields>
> 			<BreakFooter>
> 				<Output>
> 				     <Line />
> 				     <Line>
> 				     	<literal width="8" />
> 				          <literal bold="Yes">Remark:  </literal>
> 				          <field value="bje_all.BJE_TITLE" align="left" col="1" />
> 				     </Line>
> 				     <Line>
> 				     	<literal width="9" />
> 				          <literal bold="Yes">Notes:  </literal>
> 				          <field value="bje_all.BJE_NOTES" width="90" memo="yes"
> align="left" col="1" />
> 				     </Line>
> 				
> 					<HorizontalLine size="1" bgcolor="'black'" indent="2"/>
> 
> 					<Line/>
> 				</Output>						
> 			</BreakFooter>
> 		</Break>
> 
> 
> And my Field Details are:
> 
> <FieldDetails>
>      			<Output>
>      				<Line bgcolor="iif(v.counter%2,'0xCCCCCC','white')" >
>      				     <literal width="5" bgcolor="'white'"/>
>      					<field value="bje_all.BJE_LINE_NUM" width="3" align="left" col="1"/>
>      					<literal width="1"/>
>      					<field value="bje_all.BJE_LINE_SPEEDTYPE" width="10"
> align="left" col="1"/>
>      					<literal width="1"/>
>      					<field value="bje_all.BJE_LINE_ACCT" width="8" align="left" col="1"/>
>      					<literal width="1"/>
>      					<field value="bje_all.BJE_LINE_DESC" memo="yes" width="28"
> align="left" col="1" />
>      					<literal width="4"/>
>      					<field value="bje_all.BJE_LINE_POSN" width="8" align="right" col="1"/>
>      					<literal width="1"/>
>      					<field value="bje_all.BJE_LINE_AMT" width="10" align="right"
> col="1" />
>      					<literal width="2"/>
>      					<field value="bje_all.BJE_LINE_FTE" width="5" align="right" col="1"/>
>      					<literal width="4"/>
>      					<field value="bje_all.BJE_LINE_FUND" width="4" align="right" col="1"/>
>      					<literal width="4"/>
>      					<field value="bje_all.BJE_LINE_ORG" width="5" align="right" col="1"/>
>      					<literal width="2"/>
>      					<field value="bje_all.BJE_LINE_PGM" width="5" align="right" col="1"/>
>      					<literal width="2"/>
>      					<field value="bje_all.BJE_LINE_SUB_CLASS" width="5"
> align="right" col="1"/>
>      					<literal width="2"/>
>      					<field value="bje_all.BJE_LINE_DEPT_DESC" width="21"
> align="left" col="1"/>
>      				</Line>
>      			</Output>
>      		</FieldDetails>
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd_______________________________________________
> Rlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rlib-users



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642