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

MigraDoc Lite + Header Problem
https://forum.pdfsharp.net/viewtopic.php?f=2&t=211
Page 1 of 1

Author:  Arne E. [ Sat Aug 11, 2007 11:42 am ]
Post subject:  MigraDoc Lite + Header Problem

Hi Everybody,
I made a Invoice with MigraDoc Lite, but on the pages after the first one the header is in the background of the table.
I tried allready to set the TopMargin of the Page without success =(
Because it worked for the following pages, but on the first page the distance from the content to the top of the page is 2times longer.

I hope someone can help me =)

Heres the Doc with no topmargin: http://ae-webmedia.de/uploads/test1.pdf

Sry for my bad english, im german =)

Author:  pogu [ Wed Sep 19, 2007 10:11 am ]
Post subject: 

Hi !
I have exact the same problem.
I'm using a tabel for the adress to get it more nicer, and it writes over the header.

Author:  Thomas Hoevel [ Wed Sep 19, 2007 10:31 am ]
Post subject: 

Hi!

Could be a bug or a feature.
If the header is 3 cm high and starts 1.5 cm from the page border, then you'll need a topmargin of at least 4.5 cm to avoid overlapping.

The PDF file doesn't help a lot here!
An MDDDL file would be more helpful here.
You can create it like this (from your MigraDoc Document "document"):
Code:
#if DEBUG
      string strDirectory = Path.GetDirectoryName(pdfFilename);
      DdlWriter dw = new DdlWriter(Path.Combine(strDirectory, @"samplepdf.mdddl"));
      dw.WriteDocument(document);
      dw.Close();
#endif

You can check that MDDDL file yourself to see if it contains the page margins you set.

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