当前位置: 首页>>代码示例>>C#>>正文


C# Engine.Report类代码示例

本文整理汇总了C#中ReportingCloud.Engine.Report的典型用法代码示例。如果您正苦于以下问题:C# Report类的具体用法?C# Report怎么用?C# Report使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Report类属于ReportingCloud.Engine命名空间,在下文中一共展示了Report类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RenderXml

        TextWriter tw; // where the output is going

        #endregion Fields

        #region Constructors

        public RenderXml(Report rep, IStreamGen sg)
        {
            r = rep;
            tw = sg.GetTextWriter();
            stkReportItem = new Stack();
            stkContainers = new Stack();
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:13,代码来源:RenderXml.cs

示例2: RenderExcel

        IStreamGen _sg; // stream generater

        #endregion Fields

        #region Constructors

        public RenderExcel(Report rep, IStreamGen sg)
        {
            r = rep;
            _sg = sg;					// We need this in future

            _Excel = new ExcelValet();
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:13,代码来源:RenderExcel.cs

示例3: Evaluate

        //
        public virtual object Evaluate(Report rpt, Row row)
        {
            if (row == null)
                return null;
            Field f;
            string field = _ArgExpr.EvaluateString(rpt, row);
            if (field == null)
                return null;
            f = _Fields[field] as Field;
            if (f == null)
                return null;

            object o;
            if (f.Value != null)
                o = f.Value.Evaluate(rpt, row);
            else
                o = row.Data[f.ColumnNumber];

            if (o == DBNull.Value)
                return null;

            if (f.RunType == TypeCode.String && o is char)	// work around; mono odbc driver confuses string and char
                o = Convert.ChangeType(o, TypeCode.String);

            return o;
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:27,代码来源:FunctionFieldCollection.cs

示例4: Evaluate

 // Evaluate is for interpretation  (and is relatively slow)
 public object Evaluate(Report rpt, Row row)
 {
     double d = EvaluateDouble(rpt, row);
     if (d.CompareTo(double.NaN) == 0)
         return null;
     return (object) d;
 }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:8,代码来源:FunctionAggrVar.cs

示例5: Evaluate

        public object Evaluate(Report rpt, Row row)
        {
            bool bSave=true;
            IEnumerable re = this.GetDataScope(rpt, row, out bSave);
            if (re == null)
                return null;

            object v = GetValue(rpt);
            if (v == null)
            {
                object max_value=null;
                object current_value;

                foreach (Row r in re)
                {
                    current_value = _Expr.Evaluate(rpt, r);
                    if (current_value == null)
                        continue;
                    else if (max_value == null)
                        max_value = current_value;
                    else if (Filter.ApplyCompare(_tc, max_value, current_value) < 0)
                        max_value = current_value;
                }
                v = max_value;
                if (bSave)
                    SetValue(rpt, v);
            }
            return v;
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:29,代码来源:FunctionAggrMax.cs

示例6: Evaluate

        public object Evaluate(Report rpt, Row row)
        {
            object v = null;
            if (row == null)
                return null;
            bool bSave=true;
            RowEnumerable re = this.GetDataScope(rpt, row, out bSave);
            if (re == null)
                return null;

            Row crow=null;
            bool bNext=false;
            foreach (Row r in re)
            {
                if (bNext)
                {
                    crow = r;
                    break;
                }
                if (r == row)
                    bNext = true;
            }
            if (crow != null)
                v = _Expr.Evaluate(rpt, crow);
            return v;
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:26,代码来源:FunctionAggrNext.cs

示例7: Evaluate

        public object Evaluate(Report rpt, Row row)
        {
            bool bSave=true;
            IEnumerable re = this.GetDataScope(rpt, row, out bSave);
            if (re == null)
                return null;

            Row startrow=null;
            foreach (Row r in re)
            {
                startrow = r;			// We just want the first row
                break;
            }

            object current_value = _Expr.Evaluate(rpt, row);
            if (row == startrow)
            {}
            else
            {
                object v = GetValue(rpt);
                if (current_value == null)
                    return v;
                else if (v == null)
                {}	// use the current_value
                else if (Filter.ApplyCompare(_tc, v, current_value) < 0)
                {}	// use the current_value
                else
                    return v;
            }
            SetValue(rpt, current_value);
            return current_value;
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:32,代码来源:FunctionAggrRvMax.cs

示例8: DynamicExpression

 internal DynamicExpression(Report rpt, ReportLink p, string expr, Row row)
 {
     _Source=expr;
     _Expr = null;
     _rl = p;
     _Type = DoParse(rpt);
 }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:7,代码来源:DynamicExpression.cs

示例9: ProcessReport

        public ProcessReport(Report rep)
        {
            if (rep.rl.MaxSeverity > 4)
                throw new Exception("Report has errors.  Cannot be processed.");

            r = rep;
            _sg = null;
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:8,代码来源:ProcessReport.cs

示例10: TablePositioner

        string[] _values; //  values for each report item

        #endregion Fields

        #region Constructors

        //   spot for each _ris;
        public TablePositioner(Report rpt, ReportItems ris)
        {
            _rpt = rpt;
            _ris = ris;
            _values = new string[ris.Items.Count];

            _TableSyntax = BuildTable();
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:15,代码来源:TablePositioner.cs

示例11: EvaluateDecimal

        public decimal EvaluateDecimal(Report rpt, Row row)
        {
            double d = EvaluateDouble(rpt, row);
            if (d.CompareTo(double.NaN) == 0)
                return decimal.MinValue;

            return Convert.ToDecimal(d);
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:8,代码来源:FunctionAggrRvStdev.cs

示例12: RenderRtf

        public RenderRtf(Report rep, IStreamGen sg)
        {
            r = rep;
            _sg = sg;					// We need this in future

            tw = new StringWriter();	// will hold the bulk of the RTF until we generate
            _Fonts = new System.Collections.Generic.List<string>();
            _Colors = new System.Collections.Generic.List<Color>();
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:9,代码来源:RenderRtf.cs

示例13: EvaluateBoolean

 public bool EvaluateBoolean(Report rpt, Row row)
 {
     object left = _lhs.Evaluate(rpt, row);
     object right = _rhs.Evaluate(rpt, row);
     if (Filter.ApplyCompare(_lhs.GetTypeCode(), left, right) > 0)
         return true;
     else
         return false;
 }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:9,代码来源:FunctionRelopGT.cs

示例14: Evaluate

        //
        public object Evaluate(Report rpt, Row row)
        {
            double di = _expr[0].EvaluateDouble(rpt, row);
            int i = (int) di;		// force it to integer; we'll accept truncation
            if (i >= _expr.Length || i <= 0)
                return null;

            return _expr[i].Evaluate(rpt, row);
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:10,代码来源:FunctionChoose.cs

示例15: Draw

        internal override void Draw(Report rpt)
        {
            CreateSizedBitmap();

            using (Graphics g1 = Graphics.FromImage(_bm))
            {
                _aStream = new System.IO.MemoryStream();
                IntPtr HDC = g1.GetHdc();
                _mf = new System.Drawing.Imaging.Metafile(_aStream, HDC, new RectangleF(0, 0, _bm.Width, _bm.Height), System.Drawing.Imaging.MetafileFrameUnit.Pixel);
                g1.ReleaseHdc(HDC);
            }

            using (Graphics g = Graphics.FromImage(_mf))
            {
                // 06122007AJM Used to Force Higher Quality
                g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
                g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
                g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.None;
                g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;

                // Adjust the top margin to depend on the title height
                Size titleSize = DrawTitleMeasure(rpt, g, ChartDefn.Title);
                Layout.TopMargin = titleSize.Height;

                DrawChartStyle(rpt, g);

                // Draw title; routine determines if necessary
                DrawTitle(rpt, g, ChartDefn.Title, new System.Drawing.Rectangle(0, 0, _bm.Width, Layout.TopMargin));

                // Draw legend
                System.Drawing.Rectangle lRect = DrawLegend(rpt, g, false, true);

                // Adjust the bottom margin to depend on the Category Axis
                Size caSize = CategoryAxisSize(rpt, g);
                Layout.BottomMargin = caSize.Height;

                // 20022008 AJM GJL - Added required info
                AdjustMargins(lRect,rpt,g);		// Adjust margins based on legend.

                // Draw Plot area
                DrawPlotAreaStyle(rpt, g, lRect);

                // Draw Category Axis
                if (caSize.Height > 0)
                    DrawCategoryAxis(rpt, g,
                        new System.Drawing.Rectangle(Layout.LeftMargin, _bm.Height-Layout.BottomMargin, _bm.Width - Layout.LeftMargin - Layout.RightMargin, caSize.Height));

                if (ChartDefn.Type == ChartTypeEnum.Doughnut)
                    DrawPlotAreaDoughnut(rpt, g);
                else
                    DrawPlotAreaPie(rpt, g);

                DrawLegend(rpt, g, false, false);
            }
        }
开发者ID:bittercoder,项目名称:reportingcloud,代码行数:55,代码来源:ChartPie.cs


注:本文中的ReportingCloud.Engine.Report类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。