- private void NewActiveReport1_ReportEnd(object sender, EventArgs e)
- {
- // line1 是最左边TextBox的左边线
- float x1 = line1.X1 + this.PageSettings.Margins.Left;
- // line4 是最右边TextBox的右边线
- float x2 = line4.X1 + this.PageSettings.Margins.Left;
- float y1 = this.PageSettings.PaperHeight - this.PageSettings.Margins.Bottom ;
- float y2 = y1;
- this.Document.Pages[this.Document.Pages.Count - 1].DrawLine(x1, y1, x2, y2);
- }
复制代码 |