PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Oct 16, 2019 12:23 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Jun 13, 2019 4:09 pm 
Offline

Joined: Tue Jun 11, 2019 7:32 pm
Posts: 6
Hello,

I wonder how to make the grey part of this layout : https://dribbble.com/shots/1674676-Mode ... e-Template


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 14, 2019 6:41 am 
Offline
PDFsharp Expert
User avatar

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

I hesitate to click on the link, so I cannot answer yet.

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


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 14, 2019 12:17 pm 
Offline

Joined: Tue Jun 11, 2019 7:32 pm
Posts: 6
here a picture of the layout I like


Attachments:
Full_View-min2.jpg
Full_View-min2.jpg [ 212 KiB | Viewed 1895 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 14, 2019 1:02 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2980
Location: Cologne, Germany
Everything is grey there.
Not sure which 3 parts you refer to.

The address block in the middle can be made using a table with three cells, one cell for the sender, one cell for the receiver, and the cell in the middle with an image.
For the addresses of sender and receiver you can use one paragraph each with linebreaks, but you can also use three paragraphs each. I'd set the grey background colour for the table elements anyway (cell and/or row), so you do not have to set the background of the paragraph anyway.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 14, 2019 1:22 pm 
Offline

Joined: Tue Jun 11, 2019 7:32 pm
Posts: 6
I mean the address part with the image between it
so I can have a table with a cell with a paragraph in it ?


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 14, 2019 3:49 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2980
Location: Cologne, Germany
I'd use one table with one row and three columns for the address region.
You can add one or more paragraphs to each table cell.
You can use AddFormattedText to mix different styles (e.g. bold and regular) in a single paragraph.

There are many ways to get this working.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 395 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