Changing how the reports are saved

Posted by: darin on 18 March 2022, 10:25 pm EST

  • Posted 18 March 2022, 10:25 pm EST

    Currently, all of our standard reports are in our VB.NET dll's, with the source in the RESX and VB files. Is there an easy way to change those over to the RPX file?
  • Replied 20 March 2022, 10:30 pm EST

    Hello,

    Please refer to the below documentation link to convert the code based section report to "rpx" file format:

    https://www.grapecity.com/activereportsnet/docs/latest/online/save-and-load-report-layout-files-rpx.html

    Regards
    Dushyant Sharma
  • Replied 20 March 2022, 10:56 pm EST

    So there isn't a way to do it quickly and for all reports from visual studio - only one at a time?
    We are looking to change all of our standard reports from the resx/vb files to the RPX files and i was just hoping for a quick way without having to do each report by itself.
  • Marked as Answer

    Replied 21 March 2022, 9:47 pm EST

    Hello,

    Unfortunately, it is the only way to convert the code-based section report to 'rpx' format at the moment. If you have a large number of reports, you can convert the same at runtime and may use a loop to iterate through the names of the report and pass it in the below code snippet.



    Dim rpt As New GrapeCity.ActiveReports.SectionReport()
    Dim xtr As New System.Xml.XmlTextReader(Application.StartupPath + "\report.rpx")
    rpt.LoadLayout(xtr)
    xtr.Close()
    Viewer1.Document = rpt.Document
    rpt.Run()


    Regards
    Dushyant Sharma
  • Replied 27 March 2022, 6:04 pm EST

    dushyant.sharma said:
    Hello,

    Unfortunately, it is the only way to convert the code-based section report to 'rpx' format at the moment. If you have a large number of reports, you can convert the same at runtime and may use a loop to iterate through the names of the report and pass it in the below code snippet.



    Dim rpt As New GrapeCity.ActiveReports.SectionReport()
    Dim xtr As New System.Xml.XmlTextReader(Application.StartupPath + "\report.rpx")
    rpt.LoadLayout(xtr)
    xtr.Close()
    Viewer1.Document = rpt.Document
    rpt.Run()


    Regards
    Dushyant Sharma


    hello
Need extra support?

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

Learn More

Forum Channels