Hi to all,
we are migrating some custom AX2009 X++ code to AX2012 R3 CU13.
In AX2009 we had the requirement to use generate a post script file from an xpp report. The file needs to be processed afterwards in some integration, I will not go into detail of it here.
In order to do this in AX2009 we did the following:
- set up a generic printer on the domain controller using a post script driver
- Using PrintJobSettings class and pass a given file destination using the methods .setTarget(PrintMedium::Printer), .outputToPrnFile(true), .filename(outputFilePath)
This generated a postscript file in the outputFilePath.
Here the sample code of AX2009:
printJobSettings = new PrintJobSettings();
printJobSettings.deviceName(“\\myprintserver01\DAX_KyoUni_PS”);
printJobSettings.setTarget(PrintMedium::Printer); //print to printer
printJobSettings.preferredTarget(PrintMedium::Printer);
printJobSettings.outputToPrnFile(true); //redirect output to file
printJobSettings.fileName(outFilePath); //temporary file name
printJobSettings.suppressScalingMessage(true);
printJobSettings.warnIfFileExists(false);
I could not find a way in order to migrate this solution to SSRS reports. Is there a another way to achieve this these functions for SSRS reports in AX2012 ?
Many thanks for any input.