XML datasource from report parameter

61 views
Skip to first unread message

lot...@gmail.com

unread,
Aug 21, 2018, 8:11:52 PM8/21/18
to myfyireporting
Hi,

I have specified an xml datasource, coupled that to a report parameter and configured the dataset's source as the xml datasource. Using a query parameter I also coupled the dataset to the report parameter.

This works as the report is generated but in doing so it still throws an error on the datasource, it seems like it is unable to resolve the connectionstring expression.

Command I am executing is: RdlCmd /fClinicalDischargeSummary.rdl?source=c:\utilities\dischargesummarysample.xml /tpdf

Error I get from the above command is,

ClinicalDischargeSummary.rdl has the following errors:
Severity: 4 - DataSource 'datasource'.
Object reference not set to an instance of an object.
Severity: 4 - Unable to connect to datasource 'datasource'.

The datasource connectionstring is set to ={?source}

Any ideas what I am doing wrong?

Thanks

Jose Alberto Altamirano

unread,
Oct 4, 2018, 6:01:42 PM10/4/18
to myfyireporting
the name of datasource you are calling, is not correct.
i personally use this code to set datasource. 

 rdlView.Report.DataSets[NumberofDataset].SetSource('YourQuery');
Reply all
Reply to author
Forward
0 new messages