Print Word Interaction Document to specific Printer

RemcoRemco Member Posts: 81
Hi,

Is it possible to print a Word Interaction Document that is attached to a Interaction Template to a specific Printer
I saw that the wrdDoc.PrintOut statement has several parameters, but I don't know if I can use that.

BR

Remco :D

Comments

  • garakgarak Member Posts: 3,263
    save the DefaultPrinter in an variable, change then the printer, and at end, restore default printer
    ...
    //Save Active windowsprinter
    "Active Printer" := WordApp.ActivePrinter;
    ...
    WordApp.ActivePrinter := 'OKI 9300 CL';
    WordDocument.Printout;
    ...
    //Restore Active windows Printer
    WordApp.ActivePrinter := "Active Printer";
    ...
    
    Regards
    Do you make it right, it works too!
  • RemcoRemco Member Posts: 81
    Hi,

    Thanks for the answer. I tried your solution, but now I got an error "There is a printer error".

    Any Clue?

    BR

    Remco
  • garakgarak Member Posts: 3,263
    you must insert the orig. Printername. the printername can you select from the printertable.
    Do you make it right, it works too!
  • RemcoRemco Member Posts: 81
    Thanx! It works.

    Do you perhaps also know how to print to a specific tray of that printer?

    BR

    Remco
  • garakgarak Member Posts: 3,263
    yes, this is possible over the word.app.model. but the easyest way is, create 2 Printers. First Printer use tray 1, second printer use tray 2. So, the user knowes definit. which tray he use. And he can use this trays for other apps.

    Thasts the fastes solution.

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.