Created static Volian FlexGrid property to reduce number of FlexGrids created during printing. Utilized static property in code.
This commit is contained in:
parent
ba720b0adb
commit
e44f552a8d
@ -1350,6 +1350,11 @@ namespace Volian.Print.Library
|
|||||||
if (itm.FormatStepData != null && (itm.FormatStepData.Index == 42 || itm.FormatStepData.Index == 43)) return true;
|
if (itm.FormatStepData != null && (itm.FormatStepData.Index == 42 || itm.FormatStepData.Index == 43)) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
private static VlnFlexGrid _MyFlexGrid = new VlnFlexGrid(1, 1);
|
||||||
|
public static VlnFlexGrid MyFlexGrid
|
||||||
|
{
|
||||||
|
get { return _MyFlexGrid; }
|
||||||
|
}
|
||||||
public vlnParagraph(vlnParagraph parent, PdfContentByte cb, ItemInfo itemInfo, float xoff, float yoff, int rnoLevel, int maxRNO, FormatInfo formatInfo, string prefix, string suffix, float yoffRightParent)
|
public vlnParagraph(vlnParagraph parent, PdfContentByte cb, ItemInfo itemInfo, float xoff, float yoff, int rnoLevel, int maxRNO, FormatInfo formatInfo, string prefix, string suffix, float yoffRightParent)
|
||||||
{
|
{
|
||||||
if (itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj != null)
|
if (itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj != null)
|
||||||
@ -1672,9 +1677,9 @@ namespace Volian.Print.Library
|
|||||||
float yForCheckoff = yoff; //0; - default checkoff row is same as FIRST line of text
|
float yForCheckoff = yoff; //0; - default checkoff row is same as FIRST line of text
|
||||||
// if dropCheckoff is true, then the checkoff is place on the same of row as the LAST line of text
|
// if dropCheckoff is true, then the checkoff is place on the same of row as the LAST line of text
|
||||||
bool dropCheckoff = itemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.CheckOffData.DropCheckOff;
|
bool dropCheckoff = itemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.CheckOffData.DropCheckOff;
|
||||||
VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1);
|
|
||||||
if (itemInfo.MyContent.MyGrid != null)
|
if (itemInfo.MyContent.MyGrid != null)
|
||||||
{
|
{
|
||||||
|
VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1);
|
||||||
myFlexGrid.LoadGrid(itemInfo);
|
myFlexGrid.LoadGrid(itemInfo);
|
||||||
MyGrid = new vlnTable(myFlexGrid, cb);
|
MyGrid = new vlnTable(myFlexGrid, cb);
|
||||||
Height = MyGrid.Height;
|
Height = MyGrid.Height;
|
||||||
@ -1906,9 +1911,8 @@ namespace Volian.Print.Library
|
|||||||
float yoffadj = 0;
|
float yoffadj = 0;
|
||||||
if (itemInfo.Tables[0].IsTable)
|
if (itemInfo.Tables[0].IsTable)
|
||||||
{
|
{
|
||||||
//VlnFlexGrid fg = myFlexGrid;
|
MyFlexGrid.LoadGrid(itemInfo.Tables[0]);
|
||||||
//fg.LoadGrid(itemInfo.Tables[0]);
|
if (MyFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !MyFlexGrid.TopRowHasBorder())
|
||||||
if (myFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !myFlexGrid.TopRowHasBorder())
|
|
||||||
yoffadj = -SixLinesPerInch;
|
yoffadj = -SixLinesPerInch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user