Hi and thanks for replying!

I'm not sure why I couldn't get your code to work, it appeared to do everything correctly except create the pdf file! I would rather have used your code given it was shorter and much 'cleaner'.

In any case, thanks for the suggestion, if I append the directory name to the front of the file name that is passed through the prmPDFName field, then it works perfectly.

Thanks again!

Andrew