using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Forms; using System.Drawing; using System.Data; using FastReport; using FastReport.Data; using FastReport.Dialog; using FastReport.Barcode; using FastReport.Table; using FastReport.Utils; namespace FastReport { public class ReportScript { private void Table1_BeforePrint(object sender, EventArgs e) { DataSourceBase rowData = Report.GetDataSource("materialcount"); rowData.Init(); Cell65.Text = rowData.Report.GetColumnValue("materialcount.matercode").ToString(); Cell66.Text = rowData.Report.GetColumnValue("materialcount.MaterialName").ToString(); Cell67.Text = rowData.Report.GetColumnValue("materialcount.Tongji").ToString(); Cell68.Text = rowData.Report.GetColumnValue("materialcount.unitname").ToString(); } } }