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

Status
Not open for further replies.
B

Bill Wood

Guest
Can you share the error message? I am wondering if you have the correct "USING" statement. The code above where you CAST (myReportDataSource, CsvDataSource) only works if the namespace for CsvDataSource can be resolved. The full class name is "Telerik.Reporting.CsvDataSource" There is a section in the OpenEdge online documentation in this: C# .NET code mapped to OpenEdge GUI for .NET ABL You want to look at the section on Casting. Approximately, your code should look like. USING Telerik.Reporting.*. DEFINE PUBLIC VAR myReport AS Report NO-UNDO. DEFINE PUBLIC VAR csvDataSource AS CsvDataSource NO-UNDO. myReport = new Report(). csvDataSource = CsvDataSource(). csvDataSource = CAST(myReport:DataSource, CsvDataSource). (Note: in your cut/pasted code, you also had referred to the CvsDataSource CLASS as 'Telerik.Reporting.cvsDataSource" with different capitalization. For .NET components, the case is important. If you could share the error, it might point to which one of the above problems you were running into.)

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