View previous topic :: View next topic |
Author |
Message |
Arne E.
Joined: 06 Aug 2007 Posts: 1
|
Posted: 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 =) |
|
Back to top |
|
 |
pogu
Joined: 19 Sep 2007 Posts: 1
|
Posted: 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. |
|
Back to top |
|
 |
Thomas Hoevel

Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: 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. _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
 |
|