PDF Conversion Issues

Fix an Access Report Exporting as XPS Instead of PDF

Chanuka GeekiyanageChanuka Geekiyanage Nov 27, 2026 870 views

Question details

An Access user needs one report to export as a genuine PDF instead of an XPS file named with a .pdf extension.

Fix an Access Report Exporting as XPS Instead of PDF
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the VBA code

In Access, open the Visual Basic Editor and find the procedure that generates the affected report.

2
Use PDF output

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.

3
Test the exported file

Run the procedure and open the resulting file in a PDF viewer. Confirm that the report content and page layout are correct.

Export the report directly as a PDF with DoCmd.OutputTo
Filename extensions do not convert files: Adding .pdf to an XPS printer's output filename does not turn the file into a PDF. Specify acFormatPDF when using DoCmd.OutputTo.
Free Microsoft Office alternative

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.

Open and review exported PDF reportsCompatible with common Microsoft Office formats, including DOCX, XLSX, and PPTXFamiliar interface for everyday document workFree and lightweight suite for a smoother transition
microsoft office alternative - wps office

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.