Fastest way to fill an InDesign table with data
Hello,
I have to fill several InDesign tables with the content of my database.
I have the database in memory and fill the cells in two Loops (For Each row..., For Each col...).
But it is so slow! Is there a faster way?
Here a code snippet of the solution today:
For Each row In tableRecord
Dim inDRow = table.Rows.AsEnumerable().ElementAt(intRow)
For Each content In row
Dim cell = inDRow.Cells.AsEnumerable().ElementAt(content.Index)
cell.Contents = content.Value
Next
intRow+=1
Next
Thank you for help!
Best regards
Harald
