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

Layout Issue
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3432
Page 1 of 1

Author:  njdotnetdev [ Fri Aug 19, 2016 2:04 pm ]
Post subject:  Layout Issue

I am trying to achieve following matrix kind of layout:

TABLE1,1 TABLE1,2
CHART2,1 TABLE2,2
TABLE3 --> occupies whole row
CHART4 --> ocupies whole row
CHART5,1 CHART5,2

These components may span over multiple pages. What is the best way to have them side by side and still be able to view them in MigraDoc.

CHART5,1 could be a combination of 4 charts in one cell.

In HTML view I can use following analogy:

<TABLE>
<TR>
<TD>TABLE1,1</TD> <TD>TABLE1,2 </TD>
</TR>
<TR>
<TD>CHART2,1</TD> <TD>TABLE2,2 </TD>
</TR>
<TR>
<TD>TABLE3</TD colspan =2>
</TR>
<TR>
<TD>CHART4</TD colspan =2>
</TR>
<TR>
<TD>CHART5,1</TD> <TD>CHART5,2 </TD>
</TR>
</TABLE>

Author:  TH-Soft [ Sat Aug 20, 2016 6:58 am ]
Post subject:  Re: Layout Issue

Hi!

The MigraDoc equivalent for "colspan=2" is "MergeRight=1". This is a property of the Cell class.
http://stackoverflow.com/a/39047155/1015447

Author:  njdotnetdev [ Mon Aug 22, 2016 3:43 pm ]
Post subject:  Re: Layout Issue

Thanks for the reply.

If I insert a table in a cell then I am facing following issue:

If table was supposed to be rendered on two pages, it is restricted to only 1 page. As cell doesn't let the nested table render on to the next page. The changes suggested on the suggested forum didn't help me.

Author:  () => true [ Mon Aug 22, 2016 7:15 pm ]
Post subject:  Re: Layout Issue

With version 1.50 MigraDoc still does not split table cells.
So use tables in tables with care.
Maybe you can use a smart combination of MergeRight and MergeDown instead of nested tables.

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