cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic runtime subreport import

starfish
Discoverer
0 Likes
81

Does Crystal Reports 2025 .NET runtime support dynamic runtime subreport import/replacement equivalent to CRAXDRT ImportSubreport()?

View Entire Topic
RACHID_AITBOUALE
Active Participant
0 Likes

Unfortunately, the .NET SDK does not have a direct 1:1 functional equivalent to the legacy COM-based CRAXDRT.ImportSubreport(). The standard workaround is to use the Report Application Server (RAS) SDK (available within the Visual Studio runtime) to access the SubreportController.ImportSubreport() method.

Most developers handle this by placing a "placeholder" subreport in the template and then using the RAS SDK to programmatically overwrite it with an external .rpt file at runtime. If you are scaling this in a high-availability environment, I’d recommend using contract-first testing to ensure the schema of the imported subreport doesn't break the main report’s data contracts.

starfish
Discoverer
0 Likes
Thank you. Will try this tomorrow