Esempio n. 1
0
        public void RPT_8_SetSeriseLegend(FpSpread spread, int Rows, int[] Columns, System.Windows.Forms.DataVisualization.Charting.Docking dock)
        {
            if (SerCount < Columns.Length)
            {
                throw new Exception(RptMessages.GetMessage("STD085", GlobalVariable.gcLanguage) + SerCount.ToString());
            }

            //this.SerLegBox = true;
            //this.SerLegBoxObj.Docked = dock;

            //for (int i = 0; i < Columns.Length; i++)
            //    this.SerLeg[i] = spread.ActiveSheet.Cells[Rows, Columns[i]].Text;


            this.Series[0].IsVisibleInLegend = true;
            this.Legends[0].Docking          = dock;

            for (int i = 0; i < Columns.Length; i++)
            {
                this.Series[i].LegendText = spread.ActiveSheet.Cells[Rows, Columns[i]].Text;
            }
        }
Esempio n. 2
0
        // 시리즈 Legend를 셋팅
        public void RPT_8_SetSeriseLegend(string[] SeriseTitle, System.Windows.Forms.DataVisualization.Charting.Docking dock)
        {
            if (SerCount < SeriseTitle.Length)
            {
                throw new Exception(RptMessages.GetMessage("STD085", GlobalVariable.gcLanguage) + SerCount.ToString());
            }

            //this.SerLegBox = true;
            //this.SerLegBoxObj.Docked = dock;

            //for (int i = 0; i < SeriseTitle.Length; i++)
            //    this.SerLeg[i] = SeriseTitle[i];


            this.Series[0].IsVisibleInLegend = true;
            this.Legends[0].Docking          = dock;

            for (int i = 0; i < SeriseTitle.Length; i++)
            {
                this.Series[i].LegendText = SeriseTitle[i];
            }
        }
Esempio n. 3
0
        public void RPT_8_SetSeriseLegend(DataTable dt, int startRowPos, int RowSize, int ColumnPos, System.Windows.Forms.DataVisualization.Charting.Docking dock)
        {
            //this.SerLegBox = true;
            //this.SerLegBoxObj.Docked = dock;

            //for (int i = 0; i < RowSize; i++)
            //    this.SerLeg[i] = (string)dt.Rows[i + startRowPos][ColumnPos];


            this.Series[0].IsVisibleInLegend = true;
            this.Legends[0].Docking          = dock;

            for (int i = 0; i < RowSize; i++)
            {
                this.Series[i].LegendText = (string)dt.Rows[i + startRowPos][ColumnPos];
            }
        }