I am trying to use thge 'print to file' option in the print dialog box to print a Microsoft Access report using code. Please let me know which API should I use to perform this task or if there is a way to do it.

Thanks in advance.