The Infolog

A blog of Dynamics AX development tips and tricks

Skip to: Content | Sidebar | Footer

Printing external customer statements to multiple file names

10 June, 2014 (11:02) | Dynamics AX, SSRS | By: Howard Webb

One of our customers produce multiple PDF files for external customer statements. They wished to rename the file with the customer account number. To do this we have edited the following method:




I declared the following variables


To make sure that I get just the file name correctly I have used the global method fileNameSplit which returns a container, hence the outputLocation variable.


The code used was inserted at line 120, just before the output reports call.



This will override what the end user puts as a file name with the account number as this is what the customer wanted, however we could easily change line 125 to account for appending the file name.

Print Friendly, PDF & Email


Comment from Ann
Time 12th January 2016 at 19:07

This is very helpful and thanks for the writing this. but its still not over riding the file name I put in the parameter.

Comment from Howard Webb
Time 20th January 2016 at 09:32

Ann, when you debug it, does it split the file path correctly? Where exaxtly does it go wrong?