Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

As set Crystal Report with filtered DataView?

Status
Not open for further replies.

miho1

Technical User
Oct 22, 2002
78
BG
Hi

I want to show in Crystal Report filtered DataView.
For this purpose I use the following code:

Dim dv As DataView
dv=New DataView
With dv
.Table=DataSet11. Tables ("Art"
.RowFilter = " Artic Like ' B * ' "
End With
Dim rpt As New CrystalReport1
rpt. SetDataSource (dv)
CrystalReportViwer1. RepotrSource=rpt

But after that CrystalReport shows again no filtered DataView.

Where I am mistaken?

I shall be grateful.

Miho
 
Without knowing right off hand, the crystal report engine could be using the DataView's DataTable object. I'm not sure. Anyhow, you could just set the Record Selection Formula of your rpt object instead, and just use the DataTable.
 
DataTable has no method Filter

Miho
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top