Hi,
I have overridden the outputReport method of the CustAccountStatementExtController class to alternate custom print settings based on a status flag relevant to the customer account being processed.
My code is fine and works however I have a query, the code will switch the controller to output a certain customer's statement to PDF file and then back to a selected printer, on the write to PDF, it is creating the file inside a temporary folder first and then writing the file again out to the specified filepath which is stipulated in the SRSPrintDestinationSettings fileName method.
This then creates a raft of temporary folders for each customer being processed.
Is there any better way I can prevent the temporary folder and first PDF being output and only have it output to the fileName/path specified in the print destination settings?
Thanks