[reportlab-users] KeepTogether not working?
Florian Reiser
reportlab-users@reportlab.com
Fri, 16 Apr 2004 11:32:24 +0200
Hello Dinu,
here's the example code:
Story = []
for item in range(1000): # fill up the pages
listTogether = []
listTogether.append(Paragraph('HELLO', paraStyle_h1))
listTogether.append(Paragraph('Text1', paraStyle_normal))
listTogether.append(Paragraph('Text2', paraStyle_normal))
Story.append(KeepTogether(listTogether)
The paragraphs in the example never get hold together.
If they are on the same page, it's mere coincidence.
With kind regards
Florian Reiser
-----Original Message-----
From: reportlab-users-admin@reportlab.com
[mailto:reportlab-users-admin@reportlab.com] On Behalf Of Dinu Gherman
Sent: Friday, April 16, 2004 9:12 AM
To: reportlab-users@reportlab.com
Subject: Re: [reportlab-users] KeepTogether not working?
Florian Reiser:
> I try to use the flowable KeepTogether.
> I pass it the flowables as parameter, but
> the flowables still span over different pages.
>
> No, the flowables are not too large to fit on one page.
> They are together only four lines long.
>
> What am I doing wrong?
> I use the command Story.append(KeepTogether(flowables))
I remember having experienced my own frustration with KeepTogether
and this flowable might well have never worked 100 % as it should.
Could you provide some short sample code?
Dinu
--
Dinu C. Gherman - http://python.net/~gherman
......................................................................
"Terrorism is the war of the poor, and war is the terrorism
of the rich." (Peter Ustinov)
_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users