Re: ReportLab Table Option
Bryan Arguello <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CA+Xd6WXDWSVKrQJ-R8LbSOgefRunZC3KC8P7nVoTQGCoirQ8SQ@mail.gmail.com> |
Thanks, Andy Now, the only issue I have is with formatting. 1. If I let the rows choose their own size based on the largest column height, then other pages do not have knowledge of that height. Therefore I get different row heights for columns on different pages. That is probably confusing; I attached the pdf for clarity. If I fix the row heights and the fonts, then oftentimes the paragraphs do not fit since, due to word wrapping, a row label may take several lines or it may take a single line. So I am not sure what the best formatting solution 2. I want to print the the table on 11 x 17 ledger paper. I specify those dimensions through SimpleDocTemplate. However, the pdf I get first the whole table onto 8.5 x 11 (I can print the whole table on an 8.5 x 11 sheet without it being cut off). Also, the table has padding around it. I would like to get rid of this padding. Any advice you can offer would be greatly appreciated! Thanks, -Bryan On Thu, Jan 11, 2018 at 11:45 PM, Andy Robinson <[email protected]> wrote: > On 12 January 2018 at 03:42, Bryan Arguello <[email protected]> wrote: > > Hi Andy, > > > > > Since your email, I went ahead and generalized our code so that it > creates > > separate platypus Tables for each table I want to appear on a new page. > The > > only difficulty I am no having is figuring out how to give them to my > > SimpleDocTemplate so that each Table is printed on its own page. Is that > > simple enough to do? > > Hopefully simple! > > story.append(tbl1) > story.append(PageBreak()) > story.append(tbl2) > story.append(PageBreak()) > story.append(tbl3) > > > - Andy > _______________________________________________ > reportlab-users mailing list > [email protected] > https://pairlist2.pair.net/mailman/listinfo/reportlab-users >
packagingsheet.pdf
(application/pdf, 41.8 KB) - not displayed