PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to place a long table beside an image
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1429
Page 1 of 1

Author:  byrd48 [ Mon Nov 22, 2010 5:31 am ]
Post subject:  How to place a long table beside an image

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

Author:  Thomas Hoevel [ Mon Nov 22, 2010 12:58 pm ]
Post subject:  Re: How to place a long table beside an image

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.

Author:  byrd48 [ Tue Nov 23, 2010 1:27 am ]
Post subject:  Re: How to place a long table beside an image

Thank you Thomas,
That did the trick.

Regards,
Jon

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/