Do you have any other code still running while trying to execute ExportPDF ?