PDA

Click to See Complete Forum and Search --> : using one report then change the datasource with code


frosty16
May 5th, 2008, 06:05 AM
heya guys

i was wonderign is there anyway in which i can design one report and then just change the datasource (.xml files) depending on what the user clickes. its just the report itself is exactly the same and it will be quicker and easier to do that.

Thank you in advance

Frosty

wes4dbt
May 5th, 2008, 01:11 PM
What are you using to design and print the report? Crystal Reports, Data Report, Printer Object?

frosty16
May 5th, 2008, 04:05 PM
crystal reports

wes4dbt
May 6th, 2008, 08:30 PM
Sorry I don't use CR. I'm sure you could set the report data source at runtime. I don't know if CR can use a xml file as a data source, if not then load the desired xml into an ADO recordset then use that recordset as the data source.

Good Luck