PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
How to populate MigraDoc table using mvc.net http://forum.pdfsharp.de/viewtopic.php?f=2&t=4125 |
Page 1 of 1 |
Author: | brucey54 [ Fri Apr 10, 2020 6:04 pm ] |
Post subject: | How to populate MigraDoc table using mvc.net |
I'm new to using MigraDoc. I can create the table ok, but I can't populate it using a foreach loop. Any help much appreciated. Code: Column column = table.AddColumn();
column = table.AddColumn(); Row row = table.AddRow(); foreach (var item in model.UploadedFiles) { Cell cell = row.Cells[item.Filename]; } |
Author: | TH-Soft [ Tue Apr 14, 2020 10:21 am ] |
Post subject: | Re: How to populate MigraDoc table using mvc.net |
Hi! To get the cell of the first column, use code like Code: Cell cell = row.Cells[0];
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |