Fix an Access Report Exporting as XPS Instead of PDF
Question details
An Access user needs one report to export as a genuine PDF instead of an XPS file named with a .pdf extension.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Most reports are exported as PDFs, but one report is generated using DoCmd.OpenReport and a filename ending in .pdf.
- Observed behavior
- The affected report produces XPS content despite having a .pdf filename.
Identify the affected report and check whether its VBA code uses DoCmd.OpenReport or DoCmd.OutputTo. If you have access to the report design, note its current printer and page layout settings.
Export the report directly as a PDF with DoCmd.OutputTo
Use this method when VBA should create a PDF without relying on the report's selected printer.
In Access, open the Visual Basic Editor and find the procedure that generates the affected report.
Use DoCmd.OutputTo instead of the print-oriented DoCmd.OpenReport call for the export, for example: DoCmd.OutputTo acOutputReport, "ReportName", acFormatPDF, "C:\Reports\Report.pdf". Replace the report name and path with your own values.
Run the procedure and open the resulting file in a PDF viewer. Confirm that the report content and page layout are correct.

Check the affected report's printer settings
Use this approach if the workflow must print the report through DoCmd.OpenReport.
View and Work With Exported PDFs in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface. It can help you view the PDF after exporting it from Access and work with compatible Office documents as you migrate everyday tasks. It does not change Access report printer settings or fix Access VBA.

Frequently Asked Questions
Why is only one Access report producing XPS output?
The affected report may have a specific XPS printer saved in its Page Setup settings while other reports use a different printer. Open the report in Design View and compare its printer settings with a working report.
Does changing the filename from .xps to .pdf convert the file?
No. Renaming the extension does not change the file format. Use DoCmd.OutputTo with acFormatPDF or print through an available PDF printer to create a genuine PDF.
What is the difference between DoCmd.OpenReport and DoCmd.OutputTo?
DoCmd.OpenReport opens or prints a report depending on the view specified. DoCmd.OutputTo can export the report directly to a chosen format, such as acFormatPDF.
Can WPS Office fix the Access report's printer selection?
No. Change the printer in the Access report's Page Setup settings or update its VBA export code. You can then open the resulting PDF in WPS Office for review.




