UserDataSet
Leo Bidi
Montevideo, Uruguay
I need to print some selected records of a grid , was told to use userdataset instead of dbdataset.
I know that I must link the report to the userdataset but what
I dont know is how to fill this userdataset with the desired columns of my grid.
I've seen the demo for printing arrays but even cant find the way to do what I need.
Any piece of sample code would be very appreciate.
Regards
Leo
I know that I must link the report to the userdataset but what
I dont know is how to fill this userdataset with the desired columns of my grid.
I've seen the demo for printing arrays but even cant find the way to do what I need.
Any piece of sample code would be very appreciate.
Regards
Leo
Comments
1. Prepare another query (TADOQuery or any you use with your database engine)
2. Let this query looks like select * from table T
3. When you know your IDs make a dynamic (on-fly) change to your TADOQuery
TADOQuery.SQL.Add( ' where T.id in (' + String_of_your_IDs_comma_seperated + ')') --> add space before where !
4. Do TADOQuery.Open
5. Use this TADOQuery with any band you need
Mick