Create a Microsoft report:
1. add in a list.
2. add in table
3. drag data from data source to table
Dim voucher As New Voucher
DataGridView1.DataSource = voucher.FillVoucherHeader
DataGridView1.AutoResizeColumns()
DataGridView2.DataSource = voucher.FillVoucherItems
DataGridView2.AutoResizeColumns()
DataGridView3.DataSource = voucher.FillVoucherTotal
DataGridView3.AutoResizeColumns()
Me.VoucherTotalTableAdapter.Fill(Me.cpvdbDataSet.VoucherTotal)
Me.VoucherItemTableAdapter.Fill(Me.dsCheque.VoucherItem)
Me.VoucherHeaderTableAdapter.Fill(Me.dsCheque.VoucherHeader)
Me.ReportViewer1.RefreshReport()
No comments:
Post a Comment