Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46681

Export Report to CSV

$
0
0

Hello everybody, 

I have a requirement where I need to export a report in CSV, but I want the fields to be separated by semicolon(;). 

I have done this up to now:

str csvName;

csvName = strfmt("test");

controller.parmReportContract().parmReportExecutionInfo(new SrsPrintMngmtExecutionInfo());

controller.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::File);

controller.parmReportContract().parmPrintSettings().fileFormat(SRSFileFormat::CSV);

controller.parmReportContract().parmPrintSettings().overwriteFile(true);

controller.parmReportContract().parmPrintSettings().fileName();

controller.parmReportContract().parmPrintSettings().fileName(csvFileName);

controller.startOperation();

It saves the report in CSV, but the fields are separeted with comma. Istead i need the fields to be separated with semicolon(;).

Thanks in advance!


Viewing all articles
Browse latest Browse all 46681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>