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?
Forums Home / ActiveReports / General Discussion
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?
Posted 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:
Regards
Dushyant Sharma
Posted 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.
Posted 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
Posted 27 March 2022, 6:04 pm EST - Updated 30 September 2022, 6:11 am EST
hello