En muchos sistemas antiguos, cuando se genera un archivo para "imprimir a archivo", el sistema no utiliza códigos de impresora complejos, sino que simplemente vuelca el texto formateado. En estos casos, el archivo PRN es
, usa "Buscar y reemplazar" para convertir los espacios en comas y guárdalo como Experts Exchange ¿Necesitas ayuda para configurar las columnas de ancho fijo en un archivo específico? Solved: PRN to Excel - Experts Exchange convertir archivos prn a excel
Al abrir el archivo, aparecerá el Asistente para importar texto: Ancho fijo: En muchos sistemas antiguos, cuando se genera un
No alteras el archivo original y tienes control total sobre la separación de columnas. The fluorescent lights of the accounting firm flickered
The fluorescent lights of the accounting firm flickered as Mateo stared at the "Legacy_Data_1998.prn" file. It was a digital ghost—a formatted text file intended for a printer that had likely been sold for scrap decades ago. His boss had been clear: "Get those numbers into Excel by morning, or we lose the audit."
import pandas as pd df = pd.read_fwf('file.prn') # Fixed-width df.to_excel('output.xlsx', index=False)