runtime dataset
I need to assign data from a datatable to a report i have designed in report designer.
While designing report i have used a simple query so that i can use the fields required.
In run time i am using the same query with some additional parameters(Which were not used while designing).
I am creating / populating a datatable in code using the above query with parameters.
While running the report i found that parameters are working ok and data are filetered as per the query and parameters are used properly.
However Fastreport still displays all the records (obiviously its still fetching data as per sql in ther report)
instead of only those record which satisfied parameters in query .
After populating datatable i am using
report.registerdata(dt,datasource name in the fastreport while designing).
Can someone please suggest me how i should go about working on the report so that it displays data according to datatable created .
I have read entire help docs in FastReport.net and seen the example that is posted here .
But none seems to be working.
Thanks
While designing report i have used a simple query so that i can use the fields required.
In run time i am using the same query with some additional parameters(Which were not used while designing).
I am creating / populating a datatable in code using the above query with parameters.
While running the report i found that parameters are working ok and data are filetered as per the query and parameters are used properly.
However Fastreport still displays all the records (obiviously its still fetching data as per sql in ther report)
instead of only those record which satisfied parameters in query .
After populating datatable i am using
report.registerdata(dt,datasource name in the fastreport while designing).
Can someone please suggest me how i should go about working on the report so that it displays data according to datatable created .
I have read entire help docs in FastReport.net and seen the example that is posted here .
But none seems to be working.
Thanks
Comments
Could you send me the report file (.frx) and the piece of code where you register a data? You may send it to tz@fast-report.com.