File Format & Compatibility

How to Preserve Fixed Spacing When Saving Excel as PRN

Bushra ParveenBushra Parveen Oct 22, 2026 871 views

Question details

The user wants to save an Excel spreadsheet as a PRN file while ensuring the fixed-width spacing is preserved and no characters are truncated or missing.

How to Preserve Fixed Spacing When Saving an Excel File as PRN
Product
Microsoft Excel
Device & OS
not provided
Scenario
Exporting spreadsheet data to a specific legacy system or printer that requires an exact fixed-width PRN file format.
Observed behavior
Saving the file directly to the PRN format causes spacing to appear incorrect and characters to go missing when the output file is opened in text editors like Notepad.
Before you start

Verify the exact fixed-width layout requirements and acceptable delimiters with the system or administrator that will be receiving the file.

Solution 1Recommended

Export as a Fixed-Width TXT File and Rename to PRN

Since Excel's direct PRN export may rely on printer drivers and cause truncation, saving the file as a formatted text document and manually changing the extension is the most reliable workaround.

PRN files are traditionally printer-output files. Modern versions of Excel can sometimes format or truncate data differently based on active printer settings. Bypassing the native PRN export and using a standard delimited text format gives you better control over the output.

1
Adjust Column Widths

Open your worksheet in Excel. Ensure all your column widths are expanded so that no data is hidden, as text exports rely on visual column width to determine spacing.

2
Save as TXT

Click on 'File' > 'Save As'. In the format dropdown menu, select 'Text (Tab delimited) (*.txt)' or the specific delimited format required by your receiving system, and save the file.

3
Enable File Extensions

Open Windows File Explorer. Go to the 'View' tab and check the box for 'File name extensions' so you can see the .txt at the end of your saved file.

4
Rename to PRN

Right-click the newly saved .txt file, select 'Rename', and change the '.txt' extension to '.prn'. Press 'Enter' and confirm the prompt to change the file type.

5
Verify the Output

Right-click the new .prn file, select 'Open with', and choose 'Notepad' to verify that the spacing is correct and no characters are missing.

Export as a Fixed-Width TXT File and Rename to PRN
Always test with a copy: Before sending the file to the final receiving system, test the renamed .prn file with a small sample of your data to ensure it processes correctly.
Free Microsoft Office alternative

Try WPS Office for Reliable File Formatting and Exporting

If Microsoft Excel updates are causing missing characters or formatting bugs in your exported files, consider switching to WPS Office. It provides a highly compatible, lightweight, and free alternative to manage your spreadsheets without subscription hassles or unexpected export errors.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
  2. 2. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing Excel data file.
  3. 3. Export with Confidence: Go to Menu > Save As and choose your desired text format to export your data cleanly and accurately.
Highly compatible with Microsoft Excel formats including .xlsx, .xls, .csv, and text exportsReliable data exporting options without unexpected text truncation or spacing lossFree and lightweight with a familiar user interface for seamless migrationDoes not rely on complex Windows printer metrics for basic text file saving
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PRN file have missing characters when opened in Notepad?

PRN files are designed as printer-output files rather than standard text files. When Excel exports to PRN, it relies on the current default printer driver's settings and visual column widths. This dependency can cause characters to truncate or spacing to appear misaligned when viewed in plain text editors like Notepad.

Can I edit a PRN file after saving it from Excel?

While you can open a PRN file in text editors like Notepad to view or make minor text edits, modifying the file manually can easily break the strict fixed-width spacing required by the receiving system. It is usually much safer to edit the original Excel file and re-export the data.

What is the difference between PRN and CSV formats?

A PRN (Formatted Text, Space Delimited) file uses fixed-width spaces to separate columns, which is often required by legacy databases and specific line printers. A CSV (Comma Separated Values) file uses commas to separate data fields and does not preserve visual column spacing or widths.