diff --git a/Results/Output/Printers/OnePerMeter/OnePerMeterPrintDocument.cs b/Results/Output/Printers/OnePerMeter/OnePerMeterPrintDocument.cs index e7db18cac..296003c00 100644 --- a/Results/Output/Printers/OnePerMeter/OnePerMeterPrintDocument.cs +++ b/Results/Output/Printers/OnePerMeter/OnePerMeterPrintDocument.cs @@ -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; /// /// 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