PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 10:30 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 Jun 22, 2018 9:15 am 
Offline

Joined: Wed Jun 20, 2018 10:33 am
Posts: 1
Hi,

I am using PDFSharp to export a table to PDF. It works great except I ran into a few issues: if the content of a single cell in the table is longer than the height of the page it seems like the content just gets cut off. A table itself can span multiple pages but a row seems like it can only be 1 page high and It seems like it doesn't extend onto the next page.Is there any workaround to this or is this just a bug in the library? Also for tables that span multiple pages, is there a way to have the header row on the table show up at the top of every page?

Please help.

I didn't find the right solution from the Internet.

References:-
(References deleted by moderator because they looked like SPAM)


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 22, 2018 7:09 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 339
Hi!

PDFsharp does not create table.

MigraDoc creates tables - and it has the limitation that rows do not break across pages. If a single row exceeds a page then in most cases a table is not the appropriate format anyway. It can help to use pages in landscape orientation - pages can have oversize. Increasing the width of the columns will in most cases reduce the height of each row.

Set "row.HeadingFormat = true;" for rows you want to have repeated on each page.

Reference:
http://pdfsharp.net/wiki/Invoice-sample.ashx

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


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 151 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