PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Create new header in Migradocs with image and text together https://forum.pdfsharp.net/viewtopic.php?f=2&t=3615 |
Page 1 of 1 |
Author: | Steven [ Tue Jun 27, 2017 8:37 pm ] | ||
Post subject: | Create new header in Migradocs with image and text together | ||
Hi, I need to create a header which consists of an image left aligned and text right aligned at the same level. Then make a grey line underneath. This header is originally created using MS Word and I need to replicate it in code using Migradoc. In the original MS word document, the text is embedded in a text field. See attached. Can you quickly show me how to do this in code? Thanks, Steven
|
Author: | Thomas Hoevel [ Thu Jun 29, 2017 10:07 am ] |
Post subject: | Re: Create new header in Migradocs with image and text toget |
Hi! Steven wrote: Can you quickly show me how to do this in code? No time to write your code.MigraDoc is much like word. Set a right-aligned tabstop, add the image, add a tabstop, add the text - and your done. You find a code snippet that sets two tabstops here: viewtopic.php?p=5361#p5361 Do not set the centered tabstop if you do not need it. The position for the right-aligned tabstop depends on your page format and your page margins, so change the value as needed. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |