Safe to remove .rpx?

Posted by: dragangojkovic84 on 30 July 2019, 3:21 am EST

    • Post Options:
    • Link

    Posted 30 July 2019, 3:21 am EST

    Hi,

    it appears that, after upgrading AR 3 → 12, .rpx files are not used anymore, instead, there are .resx files.

    Is it safe to remove .rpx files throughout my solution, since it now uses AR 12 and each has it’s .resx file?

    Regards,

    Dragan

  • Posted 30 July 2019, 6:38 am EST

    Hello Dragan,

    .resx files and .rpx files are two different kinds of files. Note that .rpx files represent standalone xml-based section reports while .resx files represent a resource file storing objects and strings for a program. If your application has a rpx report being loaded in a SectionReport instance at run-time, you may not want to remove the same rpx file.

    Further, are you referring to the .resx file of a SectionReport.cs class or that of the application?

    How do you conclude that the .rpx files are not being used in your application now?

    I would request you to answer the above questions so that I can assist you further.

    Thanks,

    Esha

  • Posted 30 July 2019, 8:32 am EST

    Hi Esha,

    Sorry for not being correct enough…

    As observed here:

    https://www.grapecity.com/forums/ar-dev/aspnet-ar2-to-ar7-conversi

    I concluded that in ActiveReports 7 or above, rpx file is no longer needed as both layout and code behind are stored in cs/vb files.

    Also, by observing the changes after upgrade, I have .resx file automatically added, the .vb file is changed, and backup was made of both .vb and .rpx file (in newly created folder called ARConverterBackup)

    Hence my wondering if .rpx can indeed be removed.

    and to answer:

    Further, are you referring to the .resx file of a SectionReport.cs class or that of the application?

    .resx file referred here is to the part of SectionReport.vb file (not the application level)

    Thanks,

    Dragan

  • Posted 31 July 2019, 7:28 am EST

    Hello Dragan,

    Thanks for the details.

    The case you refer to, talks about upgradation from ActiveReports 2 to ActiveReports 7. While you are moving from ActiveReports 3 ActiveReports 12, I would like to inform you that the conversion is different here. You have two kinds of SectionReports: while the code-based SectionReport has layout and code in cs/vb file, standalone rpx files do not have such cs/vb files containing the layout and code details.

    As there is a .resx file corresponding to your SectionReport.vb, your code-based SectionReport gets this .resx file containing its resource information. However, if at any point, you are loading a rpx report in this code-based report, you would still need this rpx file in your application, as I mentioned previously.

    >>I have .resx file automatically added, the .vb file is changed

    The added .resx file would contain the resource strings related to your .vb file. It is unrelated to the .rpx file content and the .rpx report file should be preserved in your application as it is.

    >>backup was made of both .vb and .rpx file (in newly created folder called ARConverterBackup)

    This folder contains the old files and can be deleted if you do not need the old files.

    Hope this helps.

    Thanks,

    Esha

Need extra support?

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

Learn More

Forum Channels