コード例 #1
0
        override internal void Run(IPresent ip, Row row)
        {
            Report rpt = ip.Report();

            base.Run(ip, row);

            TextboxRuntime tbr = TextboxRuntime.GetTextboxRuntime(rpt, this);

            tbr.RunCount++;                     // Increment the run count
            string t    = RunText(rpt, row);
            bool   bDup = RunTextIsDuplicate(tbr, t, null);

            if (bDup)
            {
                if (!(this.IsTableOrMatrixCell(rpt)))                   // don't put out anything if not in Table or Matrix
                {
                    return;
                }
                t = "";                         // still need to put out the cell
            }
            ip.Textbox(this, t, row);

            if (!bDup)
            {
                tbr.PreviousText = t;                   // set for next time
            }
        }
コード例 #2
0
ファイル: Textbox.cs プロジェクト: myersBR/My-FyiReporting
		override internal void Run(IPresent ip, Row row)
		{
			Report rpt = ip.Report();
			base.Run(ip, row);

			TextboxRuntime tbr = TextboxRuntime.GetTextboxRuntime(rpt, this);

			tbr.RunCount++;		// Increment the run count
			string t = RunText(rpt, row);
			bool bDup =	RunTextIsDuplicate(tbr, t, null);
			if (bDup)
			{
				if (!(this.IsTableOrMatrixCell(rpt)))	// don't put out anything if not in Table or Matrix
					return;
				t = "";		// still need to put out the cell
			}
			ip.Textbox(this, t, row);

			if (!bDup)
				tbr.PreviousText=t;	// set for next time
		}