请参考下面代码:
- private void ArSycg_ReportStart(object sender, EventArgs e)
- {
- TextBox txtdata = new DataDynamics.ActiveReports.TextBox();
- txtdata.Name = "XXXX";
- txtdata.Text = "下载";
- this.detail.Controls.Add(txtdata);
- }
- private void detail_Format(object sender, EventArgs e)
- {
- (this.detail.Controls["XXXX"] as TextBox).HyperLink = this.Fields["down"].Value.ToString();
- }
复制代码 |