or
Public Shared Function PrepareConatctRPT As DataTable |
Dim ContactTbl As New DataTable |
Dim aRow As DataRow = ContactTbl.NewRow |
ContactTbl.Columns.Add("Buyer") |
aRow.Item("Buyer") = true |
ContactTbl.Rows.Add(aRow) |
End Function |
Private Sub ContactNormal_NeedDataSource(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.NeedDataSource |
Me.DataSource = PrepareConatctRPT |
End Sub |
Private Sub detail_ItemDataBound(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles detail.ItemDataBound |
Dim section As Processing.DetailSection = TryCast(sender, Processing.DetailSection) |
Dim row As DataRowView = DirectCast(section.DataItem, DataRowView) |
If CBool(row.Row("Buyer")) Then |
'Do some code here |
end if |
End Sub |
Column 'Buyer' does not belong to table MainTable.
if I have the same function setting datasource from other form, eg. aReport.datasouce=xxx
but not needdatasource (on demand)
it's functional
2. when I have printed using webarchive or word, the alignment is fine, however, when i print it to PDF, the alignment is slightly offset, do you have any idea what could cause it?
thanks and waiting for your reply :)