M
Mike Fechner
Guest
The cast is wrong: myDataSource = CAST(report
ataSource, myDataSource). Try: myDataSource = CAST(report
ataSource, Telerik.Reporting.CsvDataSource). The second argument of the CAST needs to be a class name. Von: goo [mailto:bounce-goo@community.progress.com] Gesendet: Freitag, 6. Februar 2015 13:19 An: TU.OE.Development@community.progress.com Betreff: [Technical Users - OE Development] SV: Telerik CsvDataSource - how do I find it? SV: Telerik CsvDataSource - how do I find it? Reply by goo DEFINE PUBLIC VARIABLE myDataSource AS Telerik.Reporting.CsvDataSource NO-UNDO. DEFINE PUBLIC VARIABLE report AS Telerik.Reporting.Report NO-UNDO. : : report = new Telerik.Reporting.Report(). myDataSource = new Telerik.Reporting.CsvDataSource(). myDataSource = CAST(report
ataSource, myDataSource). myDataSource:Source = new Uri("c:\Users\Temp\slettme2.csv"). This is how I understood what you said. This will not work. It says: Fra: Bill Wood [ mailto:bounce-wood@community.progress.com ] Sendt: 6. februar 2015 07:09 Til: TU.OE.Development@community.progress.com Emne: RE: [Technical Users - OE Development] Telerik CsvDataSource - how do I find it? RE: Telerik CsvDataSource - how do I find it? Reply by Bill Wood 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 Report NO-UNDO. DEFINE PUBLIC VAR csvDataSource AS CsvDataSource NO-UNDO. myReport = new Report(). csvDataSource = CsvDataSource(). csvDataSource = CAST(myReport
ataSource, 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.) Stop receiving emails on this subject. Flag this post as spam/abuse. No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5646 / Virus Database: 4273/9047 - Release Date: 02/02/15 Stop receiving emails on this subject. Flag this post as spam/abuse.
Continue reading...
Continue reading...