From 323a3cf7347c68ffec893950473e9a1501ca05fa Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 13 Aug 2013 12:04:41 +0000 Subject: [PATCH] --- PROMS/Volian.Print.Library/vlnBox.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PROMS/Volian.Print.Library/vlnBox.cs b/PROMS/Volian.Print.Library/vlnBox.cs index c57e2564..019a5a8f 100644 --- a/PROMS/Volian.Print.Library/vlnBox.cs +++ b/PROMS/Volian.Print.Library/vlnBox.cs @@ -52,6 +52,9 @@ namespace Volian.Print.Library const string BoxAsterisk = " *.* .* . . . . *.* . .* . . "; const string BoxAsteriskWithSides1 = " *.* .* .* . . . *.* . .* . . "; // ip2 const string BoxAsteriskWithSides2 = " *. *.*.*. . . *.*. . *. . "; // ip3 + const string BoxAsteriskTopBottom = "*.*.*. . . .*.*. .*. . "; // fnp + const string BoxLineTopBottom = "\x2500.\x2500.\x2500. . . .\x2500.\x2500. .\x2500. . "; // fnp + public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin) { if (MyBox == null) return yPageStart; @@ -112,8 +115,17 @@ namespace Volian.Print.Library cb.Rectangle(left + llxOffset, bottom - YbxAdjust + (lineThickness / 2), right - left, (Height - lineThickness + 2*YbxAdjust) * MyPageHelper.YMultiplier); break; case BoxAsterisk: + case BoxAsteriskTopBottom: DrawAsteriskTopBottom(cb, yPageStart, yTopMargin, yBottomMargin, ref top, ref bottom, left); break; + case BoxLineTopBottom: // fnp note box + lineThickness = .6f; + cb.SetLineWidth(lineThickness); + cb.MoveTo(left + llxOffset, bottom); + cb.LineTo(right, bottom); + cb.MoveTo(left + llxOffset, top); + cb.LineTo(right, top); + break; case BoxAsteriskWithSides1: case BoxAsteriskWithSides2: DrawAsteriskTopBottom(cb, yPageStart, yTopMargin, yBottomMargin, ref top, ref bottom, left);