Forum Post: RE: Telerik CsvDataSource - how do I find it?

  • Thread starter Thread starter elkin
  • Start date Start date
Status
Not open for further replies.
E

elkin

Guest
Hi goo, No need to parse the report definition XML manually. Instead deserialize the report instance (Sample 1), modify the in-memory report definition instance (Sample 2) and pass this instance to the viewer (Sample 3). Once you have a live instance of the report, you use InstanceReportSource to feed the viewer instead of the UriReportSource. In Sample 2 you need to CAST the reports' data source to CsvDataSource as the DataSource property of the report is of type Telerik.Reporting.DataSource so that different data sources may be used. However you know that in yuor particular report the data source is actually CsvDataSource and you need to change one particular property of that CsvDataSurce. So the line var csvDataSource = (CsvDataSource)report.DataSource; should be translated into ABL to DEFINE PUBLIC VARIABLE csvDataSource AS Telerik.Reporting.CsvDataSource NO-UNDO. csvDataSource = CAST(report:DataSource, CsvDataSource) Hope this helps. Milen

Continue reading...
 
Status
Not open for further replies.
Back
Top