Changed how Height and Width of grid is calculated
Preprocessed cell data to reduce number of calls to flexgrids Preprocessed RTF data to reduce calls to rich text boxes Added IsRangeStyleNull property and TextAlign property to reduce call to flexgrids Eliminated creation of multiple flexgrids but using a static flexgrid over and over
This commit is contained in:
@@ -1679,9 +1679,9 @@ namespace Volian.Print.Library
|
||||
bool dropCheckoff = itemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.CheckOffData.DropCheckOff;
|
||||
if (itemInfo.MyContent.MyGrid != null)
|
||||
{
|
||||
VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1);
|
||||
myFlexGrid.LoadGrid(itemInfo);
|
||||
MyGrid = new vlnTable(myFlexGrid, cb);
|
||||
//VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1);
|
||||
MyFlexGrid.LoadGrid(itemInfo);
|
||||
MyGrid = new vlnTable(MyFlexGrid, cb);
|
||||
Height = MyGrid.Height;
|
||||
Width = MyGrid.Width;
|
||||
|
||||
@@ -1700,7 +1700,7 @@ namespace Volian.Print.Library
|
||||
|
||||
// if the table does not have a border, only move down one line:
|
||||
float yoffForBorder = 2 * SixLinesPerInch;
|
||||
if (myFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !myFlexGrid.TopRowHasBorder())
|
||||
if (MyFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !MyFlexGrid.TopRowHasBorder())
|
||||
yoffForBorder -= SixLinesPerInch;
|
||||
|
||||
//yForCheckoff = yoff + Height - SixLinesPerInch;
|
||||
@@ -3034,7 +3034,7 @@ namespace Volian.Print.Library
|
||||
// For Robinson, tried using font's CharsToTwips but it made it too narrow, so used hardcoded 6:
|
||||
CheckOffAdj = -((float)9 * 6);
|
||||
}
|
||||
float adjwidth = CheckOffAdj;
|
||||
float adjwidth = CheckOffAdj;
|
||||
SectData sd = formatInfo.PlantFormat.FormatData.SectData;
|
||||
if (sd.UseMetaSections)
|
||||
{
|
||||
|
Reference in New Issue
Block a user