Show printerdialog when using Word Automation

elwin68elwin68 Member Posts: 153
edited 2003-07-02 in Navision Attain
I use Automation to send information from Navision Attain 3.60 to Word.

When I want to print the Word Document immediately I use to command: wrdApp.ActiveDocument.PrintOut;

Now I want to show the printerdialog before printing, so I can change the printer or the printer-properties.

How can I achieve this?

Answers

  • SimonWSimonW Member Posts: 77
    I'm not sure you can show the dialog.
    Perhaps you could use a Navision screen to select the printer & pass this onto Word?
  • elwin68elwin68 Member Posts: 153
    I have found the solution myself.
    With Word-automation you can show the printer-dialog from Word.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Can you show us the code please?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • elwin68elwin68 Member Posts: 153
    The printerdialog can be shown by using the following code:
    wrdApp.Dialogs.Item(88).Show
    

    Edited by Administrator for layout purposes
Sign In or Register to comment.