PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Apr 24, 2024 7:50 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Layout Issue
PostPosted: Fri Aug 19, 2016 2:04 pm 
Offline

Joined: Mon Oct 12, 2015 7:33 pm
Posts: 9
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>


Top
 Profile  
Reply with quote  
 Post subject: Re: Layout Issue
PostPosted: Sat Aug 20, 2016 6:58 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 916
Location: CCAA
Hi!

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

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
 Post subject: Re: Layout Issue
PostPosted: Mon Aug 22, 2016 3:43 pm 
Offline

Joined: Mon Oct 12, 2015 7:33 pm
Posts: 9
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Layout Issue
PostPosted: Mon Aug 22, 2016 7:15 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 340
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.

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


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 222 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