Sub Reports within Microsoft Dynamics AX SSRS Reports
While trying to add a subreport to an existing report there is something that needs to be followed in order for a subreport to work within Dynamics AX.
- Put both reports within the same project (model project within Visual Studio)
- Right-click on the subreport and choose properties. You have to manually type in the report name you want to use instead of being given a dropdown like normal SSRS
- Include the design name (ReportName.Report, ReportName.PrecisionDesign1, etc.) within the report name mentioned in Step 2.
- Deploy the report to the same folder on the SSRS server
- (You may need to "move" your report into StaticReports> language> folder)
- Previewing of subreports does not work within Visual Studio for AX subreports. Once you follow steps 1-4 you should be able to add the model to the AOS. Then deploy your modified report and the subreport should show up correctly whenever you call the report from AX.