I am trying to use a web service provided by a third party as a datasource in a Telerik Report. Anyone have a clue how to do that?
So far I have tried attaching it to an objectDatasource and wrote the following code behind (where ODRC_DATA_SERVICE is the web service reference added to the project and getCurrentMedications("A473813") is the method in the Web Service that returns the data.) BUt so far I've got nuthin' Tyhe designed can't detect the data source and the report preview, bets the correct number of rows that the service returns, but does not display any data.
Thanks in advance,
Rick Riedel
So far I have tried attaching it to an objectDatasource and wrote the following code behind (where ODRC_DATA_SERVICE is the web service reference added to the project and getCurrentMedications("A473813") is the method in the Web Service that returns the data.) BUt so far I've got nuthin' Tyhe designed can't detect the data source and the report preview, bets the correct number of rows that the service returns, but does not display any data.
Thanks in advance,
Rick Riedel
private
void GetCuurMedRpt_NeedDataSource(object sender, EventArgs e)
{
//try
//{
ODRC_DATA_SERVICE ws = new ODRC_DATA_SERVICE();
Telerik.Reporting.Processing.
Report report = (Telerik.Reporting.Processing.Report)sender;
report.DataSource = ws.getCurrentMedications(
"A473813");
//}
//catch { }
//finally { }
}
private void GetCuurMedRpt_ItemDataBound(object sender, EventArgs e)
{
textBox1.Value =
"=Field.RXF_ORD_DATE";
textBox2.Value =
"=Field.DRG_NAME";
textBox3.Value =
"=Field.RXF_RX_NUMBER";
}