Conversion from AR6 to AR12 - Report Designer & SectionReport Type problem

Posted by: gphillips on 5 March 2018, 10:41 am EST

    • Post Options:
    • Link

    Posted 5 March 2018, 10:41 am EST

    I am converting from AR6 to AR12. Used the Tool, did not work so well but I have changed all the references. I have now hit a couple problems:

    1. The code we have has references to the type DataDynamics.ActiveReports.ActiveReport (since reports are passed to routines for generic processing). I changed that to GrapeCity.ActiveReports.SectionReport but that generates compile errors saying that GrapeCity.ActiveReports.SectionReport is not a Type. This causes tones of errors.

    2. The report designer (from the Profession version) has all sorts of errors including missing Toolbox, Images, Report Explorer, no DataSourceIconClick event, etc. Is there a guide to converting that from AR6?

    3. There was a “Field” type in AR6 in the designer. Can’t find that either!

    Any help would be appreciated!

  • Posted 5 March 2018, 8:18 pm EST

    Sorry for the inconvenience you’re facing while upgrading from AR6 to AR12.

    1. The first issue seems to be related to missing references. Please make sure that all required references are added in your project. I have attached a screen shot of the References folder with the ActiveReports references.

    2. The second issue also seems to be related to the first one i.e due to missing References.

    3. Even ActiveReports 12 has the Field type - http://help.grapecity.com/activereports/webhelp/AR12/webframe.html#GrapeCity.ActiveReports.v12~GrapeCity.ActiveReports.Data.Field.html

    I would also like you to take a look at the following documentation link for a list of changes in class names - http://help.grapecity.com/activereports/webhelp/AR11/index.html#BreakingChanges.html

    Though the link is for AR11, the class names are same as AR12.

    Let me know if you have any more questions.

  • Posted 6 March 2018, 4:39 am EST

    Thanks for the quick reply. The main issue I have right now is with the DataDynamics.ActiveReports.ActiveReport to GrapeCity.ActiveReports.SectionReport change. Our software has many places where we define a type of the later:

    Dim xxx as DataDynamics.ActiveReports.ActiveReport

    When that is changed we get a compiler error:

    Type GrapeCity.ActiveReports.SectionReport is not defined.

    Intellisense comes up with it, but every reference we have like this generates this error.

    Ideas?

  • Posted 6 March 2018, 5:34 pm EST

    Can you please send a screen shot of the References folder of your application? Also, please delete the bin and obj folders of your application and re-compile it. If you’re still facing the issue, it would also be really helpful and would save time, if you could send across your application for me to check at my end. It does look like a reference issue. If you can’t send the application on a public forum, you could send it via email to - grapecityteam@grapecity.com. Kindly delete the bin and obj folders and zip the application.

  • Posted 8 March 2018, 4:29 am EST

    Hi Michael,

    I finally checked the target framework and it was set to 4. I changed that to 4.6.1 and most of the issues disappeared.

    An outstaniding issue that I still have the the conversion of the .Print(True, True) statement. in AR6 you did a report .Document.Print(True, True) to request a progress dialog and ask for a printer. The AR 12 .Document.Printer.Print() does not have those options. How should that be converted?

    Finally, are their instructions for converting the End User report designer controls? We use that in our software and it has LOTS of errors with missing objects, methods and events. One Specifically is that we used the images from the menus:

    DataDynamics.ActiveReports.Design.Images.Open

    That is not found replacing DataDynamics with GrapeCity.

    Thanks again for your help.

  • Posted 8 March 2018, 5:48 pm EST

    Glad to know that most of the issues got solved after changing the framework.

    The Print method is part of the GrapeCity.ActiveReports.Viewer.Win.v12.dll, so kindly add a reference to this dll (if not already added) and also include the GrapeCity.ActiveReports namespace in your project. Please refer to the following documentation links for more information : http://help.grapecity.com/activereports/webhelp/AR12/webframe.html#PrintMethodsInActiveReportsDeveloper.html

    http://help.grapecity.com/activereports/webhelp/AR12/webframe.html#GrapeCity.ActiveReports.Viewer.Win.v12~GrapeCity.ActiveReports.PrintExtension~Print(SectionDocument,Boolean,Boolean).html

    The DataDynamics.ActiveReports.Design.Images namespace is changed to GrapeCity.ActiveReports.Design.Resources.Images. Kindly refer to the section ‘Classes in Different Namespaces’ at the following documentation link:

    http://help.grapecity.com/activereports/webhelp/AR11/index.html#BreakingChanges.html

    Hope it helps in solving the rest of the issues you’re facing.

  • Posted 9 March 2018, 4:25 am EST

    The Images reference will not resolve because it says it is “Friend” so I cannot access it in my code. Suggestions?

  • Posted 11 March 2018, 3:11 pm EST

    Hello Gary,

    Unfortunately, ‘GrapeCity.ActiveReports.Design.Resources.Images’ is not accessible for the end users. You can find the all the images( which are present in ‘GrapeCity.ActiveReports.Design.Resources.Images’ resource class) at “C:\Program Files (x86)\GrapeCity\ActiveReports 12\Localization\ARDesigner\ARDesigner\Res\Resources\Images”. You can use them in your application.

    Note: Please extract the “ARDesigner” folder located at "“C:\Program Files (x86)\GrapeCity\ActiveReports 12\Localization”

    Hope it helps.

Need extra support?

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

Learn More

Forum Channels