web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Export SSRS report to XML

(0) ShareShare
ReportReport
Posted on by 2
I have installed SSRS report, also i have ax 2012 x++ code for generating PDF using that report report. - It works perfectly. 
Now i wanted to integrate XML generation for the same report in the same method where i generate pdf. 
pseudo code : 
This is for the PDF and it works : 
    SrsReportRunController              reportController;
 
        reportController = new SrsReportRunController();
        reportController.parmArgs(new Args());
        reportController.parmReportName(this.secGetSSRSReportName());
        reportController.parmReportContract().parmRdpContract().parmInvoiceRecId(custInvoiceTable.RecId);
        reportController.parmReportContract().parmRdlContract().parmLanguageId(custInvoiceTable.LanguageId);
        reportController.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::File);
        reportController.parmReportContract().parmPrintSettings().overwriteFile(true);
        reportController.parmReportContract().parmPrintSettings().fileName(fileName);
        reportController.parmReportContract().parmPrintSettings().fileFormat(SRSReportFileFormat::PDF);
        reportController.parmShowDialog(false);
        reportController.startOperation();
 
after this a call another method generate XML where i have exactly same code  
 
i just changed the fileName(it is file location) and fileformat to XML. But the XML is never generated when running this method, only the PDF same as before. 
 
The report supports XML generation, because if i open the SSRS report itself on browser, i run the report and i can export the XML from there it works. Any idea how to do the same but from AX.
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,389 Most Valuable Professional on at
    SSRS ax 2012
    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.
     
    Please show us the code you use for XML.
  • CU27111535-0 Profile Picture
    2 on at
    Export SSRS report to XML
    it is exactly same as the code for PDF(where it works), i just call the start operation method from the controller but with different file format type - XML. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 763 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 658 Super User 2025 Season 2

#3
CU05031448-0 Profile Picture

CU05031448-0 544

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans