PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 12:20 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: Wed Nov 18, 2015 10:05 am 
Offline

Joined: Wed Nov 18, 2015 9:51 am
Posts: 4
Hi,

I am new to MigraDoc and trying to render a large table in PDF using MigraDoc.
I want to repeat table header row on each page.

I believe I can do do this only when I can calculate how many rows would fit on the page.
Also some rows can have multiple lines of text (wrapped).

How can I calculate the row height based on the content the cells have?
(It should be the maximum height of all the cells in that row).


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 18, 2015 10:52 am 
Offline
PDFsharp Guru
User avatar

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

Table rows that are marked as header will automatically be repeated on each new page.

The height of a row will be determined when a table is being rendered. If the built-in feature is suitable, then you better use that instead of programming a somewhat complicated own solution.

See use of "row.HeadingFormat = true;" in this sample:
http://www.pdfsharp.net/wiki/Invoice-sample.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: No registered users and 369 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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group