PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Jul 03, 2024 3:32 pm

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: Fri Feb 18, 2011 11:39 am 
Offline

Joined: Thu Jan 27, 2011 4:59 am
Posts: 2
Hi,

I am using Migradoc to create a print preview of my reports. My data looks like

Section Header 1
Data 1
Data 2
Data 3
Section Header 2
Data 1
Data 2
Data 3

Question 1: If majority of my section data does not fit on the current page (however it is possible for a section to be split over 2 pages), I would like the whole section to be moved to the next page. For this I need to find out how many lines remain on a page that can be used to display data. Is there a way to do this?

Question 2: If I use a table to display this data, it is possible that a few entries in a section may appear on the next page. Is there a way to figure when this happens so for the data on the next page I can display the section header again?

Thanks
AK


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 21, 2011 8:54 am 
Offline
PDFsharp Guru
User avatar

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

Re question 2:
The header rows of a table will be repeated on every new page.
So if you start a new table with every section, this will do the trick.

Re question 1:
I cannot see a simple solution.

_________________
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: Google [Bot] and 51 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group