1
나는 다음과 같이 구축하는 테이블이 있습니다Reportlab - 하나 개의 테이블 셀에 두 개의 단락을 추가
styleN = styles["Normal"]
data = []
table_row = ['ID', 'Some Information']
data.append(table_row)
table_row = []
table_row.append(Paragraph(object.ID, styleN))
table_row.append(Paragraph(object.some_information1, styleN))
data.append(table_row)
t = Table(data, (6*cm,6*cm,2*cm,2*cm,2*cm), row_heights, style=ts)
지금 내가 두 번째 셀에 객체를 포함하는 두 번째 단락을 추가 할 수 있음을 달성하고자합니다. some_information2. reportlab 구글 그룹에
table_row = []
table_row.append(Paragraph(object.ID, styleN))
info1 = Paragraph(object.some_information1, styleN)
info2 = Paragraph(object.some_information2, styleN)
info_paragraphs = info1 + info2
table_row.append(info_paragraphs)
data.append(table_row)
t = Table(data, (6*cm,6*cm,2*cm,2*cm,2*cm), row_heights, style=ts)
왜 나는'table_row.append (info1);을 수행하는 것이 보이지 않기 때문에 더 많은 정보가 필요하다고 생각합니다. table_row.append (info2)'가 작동하지 않습니까? –
당신이 좋아할 때 당신이 다른 컬럼을 추가 할 것을 제안했는데, 이것은 내가 성취하고자하는 것이 아닙니다. –