Hi again,
I have just had a revelation. From looking at the Form.pm file, I saw that
if I defined the countitemnotes variable in a custom script it may help me
out. I added this to my custom_io.pl file:
$form->{countitemnotes} = 1;
Now my items print out correctly, at least as far as I have tested they seem
to work great now!
Hope this helps someone else...
Regards,
Angus Jordan
On 10/20/06, Angus Jordan <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> From what I can read of the pagebreak code in the Form.pm package, it is
> this code that is causing this white space.
>
> It looks like it counts the amount of line items in an invoice, and then
> makes breaks based on them. It does not include the %notes% variable in
> it's calculation.
>
> There is some sort of logic that includes the itemnotes variable, but it
> does not appear to be working correctly, or it works in a way I cannot see
> at the moment.
>
> It is rendering the page incorrectly because it doesn't know to make a
> pagebreak if there are lots of itemnotes to be printed.
>
> I have successfully made the itemnotes print out by forcing the pagebreak
> variable to the following statement:
>
> <%pagebreak 90 7 37%>
>
> This is dependent on the amount of line items in your invoice though, and
> it's not a solution...it's just interesting that it worked for me.
>
> Perhaps the pagebreak code can be modified to better handle lots of item
> notes...I am not enough of a Perl programmer to tackle this, although I'd
> love to use it! ;)
>
> Hope this has been of some help to someone.
>
> Regards,
> Angus
>
>
>
>
>
> On 10/19/06, Mark Bucciarelli <[EMAIL PROTECTED]> wrote:
> >
> > On Thu, Oct 19, 2006 at 07:30:30AM -0700, Jeff Kowalczyk wrote:
> >
> > > I wanted it to act just like notes, a wrapping paragraph, with
> > > a simple linebreak for each itemnotes. I expected that's what
> > > the templating above would do.
> >
> > Could you post more of the tex file? I still don't see the
> > tabledef.
> >
> > > Its strange, but the length of the itemnotes (when used, none
> > > are short, and none are blank) seems to be causing rendering
> > > failure. My pdfviewer is linux evince, windows Acrobat has the
> > > same behavior. itemnotes text is not contained in a select-all
> > > text copy-paste.
> >
> > ?!
> >
> > > Long notes on invoices with no itemnotes wordwrap corectly, but
> > > the presence of <%itemnotes%> as above white-out the whole text
> > > block, although the block does take up enough vertical
> > > whitespace to make me think that it's getting rendered
> > > (improperly).
> >
> > What happens if you replace the <%itemnotes%> field with some
> > hard-coded text, as a test?
> >
> > What happens if you take out the close paren?
> >
> > What happens if you do both of the above?
> >
> > Get it rendering properly then add stuff back one piece at a
> > time.
> >
> > m
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > sql-ledger-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users
> >
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sql-ledger-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sql-ledger-users