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

2 posts, 0 answers
  1. Aneesh
    Aneesh avatar
    3 posts
    Member since:
    May 2015

    Posted 03 Mar Link to this post

    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))

     

     

  2. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 07 Mar Link to this post

    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
  3. DevCraft banner
Back to Top