PDFsharp & MigraDoc Foundation

Issues with tables using MigraDoc
Page 1 of 1

Author:  TOMO [ Mon Jan 22, 2018 12:06 pm ]
Post subject:  Issues with tables using MigraDoc

Hi guys

I have 2 issues with my invoice pdf. I wonder if you can help me solving these.

First issue concerns the first row in the table showing the invoice items. On first page there has to be a higher row 1 containing specific information. I have managed to create that just by setting the rowheight for this to a specific value. The other rows are having another height. However, if the number of invoice items causes the invoice to continue om page 2, I don't want the heigh row 1 in the table on the subsequent pages. The invoice table should just continue with "normal" lines. I can't figure out how to control this. I have tried using a variable which will be true only for the first line in the table FillInvoice table method - after the first row the variable is false. Nevertheless, the heigh row including the content is printet on all pages. How can that be and how to solve this?

Second issue concerns the footer. The footer is a table with 4 columns and 2 rows.
Row 1, Column 1 is printed on 2 lines which also goes for row 1, column 4 and row 2, column 4. I don't want 2 lines but only 1 line. Setting the fontsize to 4 I can manage to get the row 1, column 1 in one line but not for column 4. There seems to be more than enough space to print the data in just one line so why doesn't it do that? How can achieve this?

Hope someone is able to help me.

Trying to upload a copy of the output file fails.

Best regards
Torben Mortensen

Author:  Thomas Hoevel [ Mon Jan 22, 2018 3:11 pm ]
Post subject:  Re: Issues with tables using MigraDoc


First Issue:
The Invoice sample calls "row.HeadingFormat = true; " for the first row. This makes the first row a heading row which will be repeated on all subsequent pages.
Remove this assignment if you do not want header rows that are repeated on subsequent pages.

Second Issue:
I don't understand what the problem is. Difficult to understand without C# code and MDDDL file.

Third Issue:
Small PDF files can be attached to forum posts if you zip them.

See also:

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group