Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's been a while since I've used ReportLab so I may be way off in this. However, I think all of the items in <em>parts</em> need to be of the Flowable class. Here, you're appending a list to parts:</p> <pre><code>data = [] parstyle = ParagraphStyle(name='Title', fontName='Helvetica', fontSize=11, alignment=0) while mySelectedGroups: selectedGroups_desc = 'Community ID:'+ '&lt;i&gt;' + mySelectedGroups.Community_ID + '&lt;\i&gt;'+ 'Organisation Name :' + mySelectedGroups.Organisation_Name + '&lt;br&gt;' p = Paragraph(selectedGroups_desc, parstyle) data.append(p) #print data mySelectedGroups = mySelGroupsCursor.next() parts.append(data) </code></pre> <p>I don't think this is valid. Everything in parts is supposed to be a Flowable. Perhaps you're trying to make a list, in which case you'd need a ListFlowable. </p> <p>Here is the example from the docs <a href="http://www.reportlab.com/docs/reportlab-userguide.pdf" rel="nofollow">http://www.reportlab.com/docs/reportlab-userguide.pdf</a> section 9.10:</p> <pre><code>from reportlab.platypus import ListFlowable, ListItem from reportlab.lib.styles import getSampleStyleSheet styles = getSampleStyleSheet() style = styles["Normal"] t = ListFlowable( [ Paragraph("Item no.1", style), ListItem(Paragraph("Item no. 2", style),bulletColor="green",value=7), ListFlowable( [ Paragraph("sublist item 1", style), ListItem(Paragraph('sublist item 2', style),bulletColor='red',value='square') ], bulletType='bullet', start='square', ), Paragraph("Item no.4", style), ], bulletType='i' ) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload