AR17 Conversion. Problem with BackDrop and BackDropItem in Chart

Posted by: gphillips on 30 May 2023, 6:06 pm EST

    • Post Options:
    • Link

    Posted 30 May 2023, 6:06 pm EST

    I’m converting an AR12 project to AR17 in VS2022 (Winform Framework). In the process of conversion, the chart BackDrop properties are generating a designer (not compile) error. The original code was

    Me.chrIncomeExpense.Backdrop = New GrapeCity.ActiveReports.Chart.BackdropItem(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, System.Drawing.Color.White, System.Drawing.Color.SteelBlue, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, Nothing, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched)
    

    This compiles properly, but when I try to open it in the designer I get the following errors:

    Type ‘GrapeCity.ActiveReports.Chart.BackDropItem’ does not have a constructor with parameters of types BackdropStyle, Color, Color, GradientType, HatchStype, null, PicturePutStyle

    Type ‘GrapeCity.ActiveReports.Chart.BackDrop’ does not have a constructor with parameters of types BackdropStyle, Color, Color, GradientType, HatchStype, null, PicturePutStyle.

    Any suggestions would be appreciated.

  • Posted 31 May 2023, 8:39 am EST

    Hi Gary,

    I tested this at my and I was able to run the report at my end without any error messages. For reference, I have attached the test application along with.

    Please make you are not missing any references in your project. To check this you may refer to the attached sample application.

    If the issue persists, then please share a runnable sample application reproducing the issue and also provide us with the adequate steps to reproduce this behavior so we can test this behavior at our end and get back to you accordingly.

    ChartBackdropSample.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels