This is a migrated thread and some comments may be shown as answers.

Public Shared Widening Operator CType(report As Telerik.Reporting.Report) As Telerik.Reporting.ReportSource' is obsolete: 'The implicit Telerik.Report

1 Answer 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aneesh
Top achievements
Rank 1
Aneesh asked on 03 Mar 2016, 09:35 PM

the warning message I am getting is below. I am a novice and I appreciate if you can help me with this. the original code used telerik reporting before 2012 , and I see some changes were made in 2012

Warning 1 'Public Shared Widening Operator CType(report As Telerik.Reporting.Report) As Telerik.Reporting.ReportSource' is obsolete: 'The implicit Telerik.Reporting.Report to Telerik.Reporting.ReportSource conversion is now obsolete. Please, use a Telerik.Reporting.InstanceReportSource object instead. For more information, please visit: http://www.telerik.com/support/kb/reporting/general/q2-2012-api-changes-reportsources.aspx#reportprocessor.'. 

here is the code

Me.SubReport1.Location = New Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0), Telerik.Reporting.Drawing.Unit.Inch(0.000078757606388535351))
Me.SubReport1.Name = "SubReport1"
Me.SubReport1.ReportSource = Me.Items_1prev_3future1
Me.SubReport1.Size = New Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(10.69283390045166), Telerik.Reporting.Drawing.Unit.Inch(1.4924474954605103))

 

 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 07 Mar 2016, 06:28 PM
Hi Aneesh,

This is a change introduced in Q2 2012. For more details, please check How to migrate your project to utilize the new ReportSource objects.

There are also local examples, installed by default under C:\Program Files (x86)\Telerik\Reporting Q1 2016\Examples, illustrating how different viewer's ReportSource properties can be set.

I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aneesh
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or