- Removed Debug
- Don't resize grid when initializing - Use LoadGrid which adjusts the Grid Font - Only save contents if in edit mode Changes to Comments Added Property MySymbolFontName - Setup GoTo button to handle ROTable Grids - Support GoTo for ROTable Grids (MyFlexGrid.IsRoTable) - Restored code to handle Vertical Alignment - Added MyItemInfo property - Removed commented-out debug in DPI property - Support Font Override - Use DisplayText to do ReplaceWords - Set Text Color to Black (Change Links to Black) Use DebugOutput property rather than _DebugOutput field - Override Font for printing grids - Override Font for printing text
This commit is contained in:
@@ -135,6 +135,8 @@ namespace Volian.Print.Library
|
||||
float w = MyTable.ColLeft[cr.c2 + 1] - MyTable.ColLeft[cr.c1];
|
||||
float h = MyTable.RowTop[cr.r2 + 1] - MyTable.RowTop[cr.r1];
|
||||
string str = MyFlexGrid.GetCellRTFString(r, c)??string.Empty;
|
||||
DisplayText dt = new DisplayText(MyFlexGrid.MyItemInfo, str, false);
|
||||
str = dt.StartText;
|
||||
using (StepRTB myRTB = new StepRTB())
|
||||
{
|
||||
myRTB.Width = (int)w;
|
||||
@@ -143,7 +145,8 @@ namespace Volian.Print.Library
|
||||
myRTB.Rtf = str.Replace(@"\~", @"\u160?");
|
||||
else
|
||||
myRTB.Text = str;
|
||||
//myRTB.ForeColor = System.Drawing.Color.Red;
|
||||
myRTB.SelectAll();
|
||||
myRTB.SelectionColor = System.Drawing.Color.Black;
|
||||
str = myRTB.Rtf;
|
||||
}
|
||||
iTextSharp.text.Paragraph myPara = RtfToParagraph(str);
|
||||
@@ -254,7 +257,8 @@ namespace Volian.Print.Library
|
||||
if (cr.Style == null || cr.Style.Border.Style != BorderStyleEnum.None)
|
||||
{
|
||||
myColumnText.Canvas.Rectangle(left + x, top - y, w, -h);
|
||||
myColumnText.Canvas.SetColorStroke(iTextSharp.text.Color.BLACK);
|
||||
iTextSharp.text.Color lineColor = new iTextSharp.text.Color(PrintOverride.OverrideTextColor(System.Drawing.Color.Black));
|
||||
myColumnText.Canvas.SetColorStroke(lineColor);
|
||||
myColumnText.Canvas.SetLineWidth(.5F);
|
||||
if (cr.Style != null && cr.Style.Border.Style == BorderStyleEnum.Dotted)
|
||||
{
|
||||
|
@@ -297,7 +297,7 @@ namespace Volian.Print.Library
|
||||
_MyHelper.Rev = _Rev;
|
||||
_MyHelper.RevDate = _RevDate;
|
||||
_MyHelper.Watermark = _Watermark;
|
||||
_MyHelper.DoZoomOMatic = _DebugOutput;
|
||||
_MyHelper.DoZoomOMatic = DebugOutput;
|
||||
OnStatusChanged("After Set PageEvent", PromsPrinterStatusType.SetPageEvent);
|
||||
}
|
||||
else
|
||||
|
@@ -769,11 +769,7 @@ namespace Volian.Print.Library
|
||||
if (itemInfo.MyContent.MyGrid != null)
|
||||
{
|
||||
VlnFlexGrid myFlexGrid = new VlnFlexGrid(1,1);
|
||||
using (StringReader sr = new StringReader(itemInfo.MyContent.MyGrid.Data))
|
||||
{
|
||||
myFlexGrid.ReadXml(sr);
|
||||
sr.Close();
|
||||
}
|
||||
myFlexGrid.LoadGrid(itemInfo);
|
||||
MyGrid = new vlnTable(myFlexGrid, cb);
|
||||
Height = MyGrid.Height;
|
||||
Width = MyGrid.Width;
|
||||
@@ -1039,7 +1035,10 @@ namespace Volian.Print.Library
|
||||
{
|
||||
_RtfSB = new StringBuilder();
|
||||
DisplayText vlntxt = new DisplayText(itemInfo, E_EditPrintMode.Print, E_ViewMode.View, true, E_FieldToEdit.StepText, false);
|
||||
_RtfSB.Append(AddFontTable(vlntxt.TextFont.WindowsFont));
|
||||
System.Drawing.Font myFont = vlntxt.TextFont.WindowsFont;
|
||||
if (!itemInfo.IsTable && StepRTB.MyFontFamily != null)
|
||||
myFont = new System.Drawing.Font(StepRTB.MyFontFamily, myFont.Size, myFont.Style);
|
||||
_RtfSB.Append(AddFontTable(myFont));
|
||||
_RtfSB.Append(vlntxt.StartText);
|
||||
_RtfSB.Append("}");
|
||||
return _RtfSB.ToString();
|
||||
|
Reference in New Issue
Block a user