Print file upon open of Word.

Discussion in 'AutoCAD' started by BillZ, Apr 28, 2004.

  1. BillZ

    BillZ Guest

    I know I can use startapp to open a file in word. Is there any way to execute the print button after the doc is open?

    Maybe we're talking VB?

    TIA

    Bill
     
    BillZ, Apr 28, 2004
    #1
  2. Just guessing based on code posted by Rudy Tovar 3/8 in response to my
    question
    "Sending Email using AutoLISP or VisualLisp" 3/8/2004 4:17pm

    (vlax-invoke-method WORD_OBJ 'print)
     
    Alan Henderson @ A'cad Solutions, Apr 28, 2004
    #2
  3. BillZ

    BillZ Guest

    I can't get it to work.

    Would the word object be the active document?

    Bill
     
    BillZ, Apr 28, 2004
    #3
  4. BillZ

    BillZ Guest

    It works!

    (vlax-invoke-method WORD_OBJ 'printout)

    Thanks

    Bill
     
    BillZ, Apr 28, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.