Output.Priters.OnePerMeter : 2ng page table position fixed.

This commit is contained in:
Milan Hanajik 2018-04-11 13:50:01 +02:00
parent 0993716c8e
commit b2e467714e

View File

@ -29,10 +29,7 @@ namespace Results.Output.Printers.OnePerMeter
readonly int spacingOne;
readonly int spacingOne4Header;
float commonTop; /// = TitleY + 60
float bodyTop; /// = HdrTop + 160
///
float titleHeight;
float titleHeight;
/// <summary>
/// Property variable for the Font the user wishes to use
@ -155,8 +152,12 @@ namespace Results.Output.Printers.OnePerMeter
}
}
float bodyTop = cfg.TopMargin;
if (pageNr == 1)
{
/// First page
///
/// Print water meter picture
///
@ -177,7 +178,7 @@ namespace Results.Output.Printers.OnePerMeter
e.Graphics.DrawString(header, titleFont, Brushes.Black, printArea);
titleHeight = System.Windows.Forms.TextRenderer.MeasureText(header, titleFont).Height;
commonTop = TitleY + titleHeight;
float commonTop = TitleY + titleHeight;
///----------------
/// Common items