Not sure what this error is trying to say as I am not indexing anything. What I am trying to do is put an image into a table and then display that table. My end goal is to create a 2×2 table filled with 4 images.
The error I get is:
Function 'subsindex' is not defined for values of class 'mlreportgen.dom.Image'.Error in sad (line 9)entry=TableEntry(bojack)
Here is my code:
import mlreportgen.dom.*;import mlreportgen.report.* rpt = Report('C:\Users\GOE7ABT\Desktop\myreport1.pdf');bojack=Image('C:\Users\GOE7ABT\Desktop\21-bojack-12.w710.h473.jpg');table=Table();entry=TableEntry(bojack)append(table,entry)add(rpt,table)close(rpt);rptview(rpt.OutputPath);
Best Answer