Dim FDataSet = New System.Data.DataSet
Dim Table As New System.Data.DataTable
'Table=DataTables("gxscjh").BaseTable.copy 此代码是此表所有记录
Table=e.Form.Controls("Table1").Table.DataTable.BaseTable.copy 当前表默认加载所有数据 用此条件筛选后还是所有数据 请帮忙指导一下!
FDataSet.Tables.Add(Table)
Dim report As New FastReport.Report
report.RegisterData(FDataSet)
'report.GetDataSource(DataTables(Table).BaseTable.copy.TableName).Enabled = True
report.GetDataSource(e.Form.Controls("Table1").Table.DataTable.BaseTable.copy.TableName).Enabled = True
report.Load(ProjectPath & "Skins\" & "工序生产计划.frx")
report.Prepare()
report.ShowPrepared()