- 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:
Rich
2011-03-11 15:49:39 +00:00
parent ddb2ea162f
commit 6029f6dd8b
8 changed files with 196 additions and 127 deletions

View File

@@ -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)
{