PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Apr 25, 2018 1:07 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Jan 22, 2018 12:06 pm 
Offline

Joined: Tue Jan 16, 2018 10:21 am
Posts: 8
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 22, 2018 3:11 pm 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2810
Location: Cologne, Germany
Hi!

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:
viewtopic.php?f=2&t=832
http://www.pdfsharp.net/wiki/MigraDocDDL.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group