[Python] Issues with printing docx using win32com pyhon

Discussão em 'Python' iniciado por Stack, Abril 12, 2025.

  1. Stack

    Stack Membro Participativo

    Im running a simple app in python that is supposed to print a set number of pages from a document im working on. The document is 8 pages long but using

    doc = word.Documents.Open(abs_docx_path)
    doc.PrintOut(Range=1,From=1, To=2)


    or

    doc.PrintOut(From=1, To=2)


    it still print every single page in the document instead of only the first and second one. Im running the latest version of word available. Is there something im doing wrong?

    Continue reading...

Compartilhe esta Página