how to print a .docx file from python to a usb printer

0

Good morning I would like to know how I can send a .docx file to a USB printer connected to the PC.

This is an example I found on the web:

winword.exe /p "c:\marta.doc" /mFilePrintDefault /mFileExit

but it did not work for me

this is my python code:

import subprocess

subprocess.Popen(['C:/Program Files (x86)/Microsoft Office/root/Office16/WINWORD.EXE','/p','Comprobantes/17-08-2018210734_t_exe.docx','/mFilePrintDefault/mFileExit'])
    
asked by Mystic_Force 18.08.2018 в 18:56
source

0 answers