ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

print microsoft word document

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • print microsoft word document

    hi everyone

    is it possible to print a microsoft word document with rpg/clp command?
    i need to print it without openning the document.

    thank's

    Rachel

  • #2
    Re: print microsoft word document

    Hi rachelyp:

    Code:
    strpco
    monmsg cpf0000
    strpccmd pccmd('C:\Program Files\Microsoft Office\Office\winword.exe C:\FTP_TEMP\mydoc.doc /mFilePrintDefault')
    The above will start winword.exe located in program files\microsoft office\office...
    your path may vary!!!!
    It will open and print mydoc.doc in ftp_temp you need to substitute your path
    You will also need to close word

    see here:



    Hope this helps
    GLS
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

    Comment


    • #3
      Re: print microsoft word document

      thank's for your answer

      i tried to run it but nothing append.
      when i removed the monmsg, i got this message:

      "STRPCO can only be run from a programmable workstation."

      what does it mean?


      Rachel
      Last edited by rachelyp; August 23, 2007, 12:50 AM.

      Comment


      • #4
        Re: print microsoft word document

        it means your on one of those old twinax terminals ....It must be a PC.


        jamie
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment

        Working...
        X