public void RunAppearanceExpression(EbDataField field, int slno)
        {
            if (field.Font is null || field.Font.Size == 0)
            {
                field.Font = new EbFont {
                    Color = "#000000", FontName = "Roboto", Caps = false, Size = 10, Strikethrough = false, Style = Enums.FontStyle.NORMAL, Underline = false
                }
            }
            ;
            PdfGEbFont pg_font = new PdfGEbFont
            {
                Caps          = field.Font.Caps,
                color         = field.Font.Color,
                FontName      = field.Font.FontName,
                Size          = field.Font.Size,
                Strikethrough = field.Font.Strikethrough,
                Style         = (PdfGFontStyle)(int)field.Font.Style,
                Underline     = field.Font.Underline
            };
            EbPdfGlobals globals = new EbPdfGlobals();

            globals["CurrentField"].Add("CurrentField", new PdfNTV
            {
                Name  = "CurrentField",
                Type  = PdfEbDbTypes.Object,
                Value = new PdfGReportField(field.LeftPt, field.WidthPt, field.TopPt, field.HeightPt, field.BackColor, field.ForeColor, field.IsHidden, pg_font)
            });

            object value = ExecuteExpression(AppearanceScriptCollection[this.Name], slno, globals, field.DataFieldsUsedAppearance, true);

            field.SetValuesFromGlobals(globals.CurrentField);
        }
 public PdfGReportField(float left, float width, float top, float height, string backColor, string foreColor, bool isHidden, PdfGEbFont font)
 {
     Left      = left;
     Width     = width;
     Top       = top;
     Height    = height;
     BackColor = backColor;
     ForeColor = foreColor;
     IsHidden  = isHidden;
     Font      = font;
 }