This commit is contained in:
2010-06-16 14:10:02 +00:00
parent e0df82c11d
commit 893282d7a2
5 changed files with 76 additions and 38 deletions

View File

@@ -105,7 +105,7 @@ namespace Volian.Print.Library
vlnHeader tmp = vph as vlnHeader;
// the separator must exist and the previous must have a change bar.
if ((sep != "") && (tmp.HeaderText == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar())
if ((sep != "") && (tmp.Text == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar())
{
vlnParagraph prev = MyPageHelper.MyParagraphs[parent.MyItemInfo.MyPrevious.ItemID];
float delta = parent.YOffset - prev.YOffset;
@@ -131,7 +131,7 @@ namespace Volian.Print.Library
float xAdj = 3F;
//cb.SetColorStroke(Color.GREEN);
// TODO: Should default to black
iTextSharp.text.Color changeBarColor = new iTextSharp.text.Color(PrintOverride.OverrideTextColor(System.Drawing.Color.Green));
iTextSharp.text.Color changeBarColor = new iTextSharp.text.Color(PrintOverride.OverrideChangeBarColor(System.Drawing.Color.Black));
cb.SetColorStroke(changeBarColor);
cb.SetLineWidth(.5F);
cb.MoveTo(XOffset + xAdj, YOffset - yAdj); // combination yStart and YOffset
@@ -166,7 +166,7 @@ namespace Volian.Print.Library
float w = vlnPrintObject.GetTableWidth(cb, myparagraph);
float h = vlnPrintObject.GetParagraphHeight(cb, myparagraph, w);
cb.SetColorFill(changeBarColor);
Rtf2Pdf.TextAt(cb, myparagraph, XOffset + xAdj - Rtf2Pdf.Offset.X + 3, yBottom + h - Rtf2Pdf.Offset.Y + 2.7F, w, h, "");
Rtf2Pdf.TextAt(cb, myparagraph, XOffset + xAdj - Rtf2Pdf.Offset.X + 3, yBottom + h - Rtf2Pdf.Offset.Y + 2.7F, w, h, "", yBottomMargin);
lastMsg = vcbm.Message;
}
}