on 04-09-2014 2:28 PM
Hello All..
I need to generate a crystal report based on xml file and a dataset. xml file contains all the headers and have to map this with respective dataset( where actual data is).
what i've done so far: added xml file to report( add--new item -- CrystalReport1 -- using the report wizard -- create new conection(ADO.NET xml) )
file path -- my xml file path
class name --- empty
use dataset from class --- (checked it)
dataset names --- showing empty dropdown and clicked on 'Finish' button .
the report is opened up with xml fields --- dragged 2 fields on to the report. (end of report design)
now with aspx page :
CrystalReportInstance.SetDataSource(ds); // dataset contains data with same headers as xml file
CrystalReportViewer1.ReportSource =CrystalReportInstance ;
CrystalReportViewer1.DataBind();
Result received after executing above: report with only headers
Using : crystal reports(13.0.7.1136)
windows 7 ultimate
sql server 2008 r2, enterprise edition.
and i did search on this here.. really have not seen any similar threads answering. is this the correct way to do this.. please suggest me!!
Hi Tilu
See if this will help:
KBA: 1511438 - How to use datasets to pass data to crystal reports
Also, have a look at KBA: 1525432 - Could not load file or assembly 'file:///<Path>crdb_adoplus.dll' or one of its depend...
- Ludek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.