I have a problem with dataselection. The CrystalReportViewer works well with: Report.SelectionFormula = cCriteria or Report.RecordSelectionFormula = cCriteria CrystalReportViewer.Reportsource = Report When I export or print the report the dataselection does
not work. All rows of the connected table are appearing. What is wrong? I've tried with the DataSource proberty and with a Dataset. Same appearance: Report.SetDataSource(oRptDataSet.Tables(0)) The dataset contains the correct data, but it seemds, it will not
be connected to the report. I have designed the report at designtime with the reportdesigner and connected it to an Access-table. Can anybody help? Helmut
I've find a way how it works: ' So far: ...... Report.SelectionFormula = cCriteria or Report.RecordSelectionFormula = cCriteria CrystalReportViewer.Reportsource = Report 'Now i put the following two lines to the code: CrystalReportViewer.ShowLastPage() CrystalReportViewer.ShowFirstPage()
' and it works (SelectionFormula does also work for the exportfile and not only for the viewer.) ' It's crazy, because the report has only one page! How is this to explain? Helmut
MChelmut
Member
10 Points
2 Posts
Problem with SelectionFormula and/or RecordSelectionFormula
Nov 25, 2003 01:15 PM|LINK
MChelmut
Member
10 Points
2 Posts
Re: Problem with SelectionFormula and/or RecordSelectionFormula
Nov 26, 2003 01:08 PM|LINK