protected override object DoEvaluate(ScriptThread thread) { thread.CurrentNode = this; //standard prolog var pi = thread.GetPageInfo(); var test = globalNode.AsString.ToLower(); if (test.Contains(":")) { Console.WriteLine(""); } if ( test == "pagenumber") { return pi.PageNumber; } else if (test == "pages") { return pi.TotalPages; } else if (test == "reportname") { return pi.ReportName; } else if (test == "reportfolder") { return pi.ReportFolder; } else if (test == "reportfilename") { return pi.ReportFileName; } else { return String.Format(CultureInfo.CurrentCulture,"Syntaxerror in Globals <{0}>",globalNode.AsString); } }