PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue May 21, 2024 3:14 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Dec 16, 2014 9:36 am 
Offline

Joined: Thu Oct 30, 2014 9:19 am
Posts: 10
Hi,
I have a table with lots of number of rows with shading on even rows. The problem is when the page is break in odd row, the next even row will be the first row on the next page which is an odd row in the following page thus, making the styles on the next page is wrong [odd rows will have shading instead of even rows].

Does anyone have an idea how to solve this?
Thanks!


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 17, 2014 8:57 am 
Offline
PDFsharp Guru
User avatar

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

A bit of a hack: there is a flag (KeepWith) that can be set for rows. Set it to 1 for all odd rows that are followed by another row and you will never have an even row as the first row on a new page.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 09, 2015 7:11 am 
Offline

Joined: Thu Oct 30, 2014 9:19 am
Posts: 10
Thomas Hoevel wrote:
Hi!

A bit of a hack: there is a flag (KeepWith) that can be set for rows. Set it to 1 for all odd rows that are followed by another row and you will never have an even row as the first row on a new page.


Nice, it works! Thanks!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 89 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