PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 14, 2024 12:33 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: Mon Nov 22, 2010 5:31 am 
Offline

Joined: Sat Nov 20, 2010 1:00 am
Posts: 4
Hi,
I am trying to create a report which shows an image on the left half of the page and a table beside it on the right half. In some cases, the table is long and would need to wrap to the next page, however I will size the image such that it remains on the first page.
Using MigraDoc only, I am able to create a table using section.addTable, but am unable to explicitly position it on the right side of the page. If I use a textframe, then the table does not wrap properly and extends off the page.
What is the best way to accomplish this?
Thank you in advance,
Jon


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 22, 2010 12:58 pm 
Offline
PDFsharp Guru
User avatar

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

You can move the table to the right by setting the left margin in the page setup (this setting applies to a complete section).
Images are shapes and behave like textframes, so you can position it anywhere you want.

If you need "normal" text above or below the table, you must negative values for the left margins of these paragraphs.
You can set this for the styles you use.

We used this trick and it works in our application.

A left margin for tables is on the wishlist.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 23, 2010 1:27 am 
Offline

Joined: Sat Nov 20, 2010 1:00 am
Posts: 4
Thank you Thomas,
That did the trick.

Regards,
Jon


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