Autor Thema: Drucken über Word mit Druckdialog  (Gelesen 1943 mal)

Offline Puthy

  • Frischling
  • *
  • Beiträge: 15
Drucken über Word mit Druckdialog
« am: 23.11.07 - 10:15:50 »
Hi,

ich versuche ein Word-Dokument über Notes zu druke. Soweit - eigentlich ganz easy. Aber wie kann ich die DialogBox zum drucken (Auswahl von Drucker etc) aus Notes heraus öffnen?

Derzeit handhabe ich (versuche) wie folgt:

Code
Set app = CreateObject("Word.Application")
	Set objWordDocument = app.Documents.Add(strPath)
	Set worddoc = app.activedocument
	app.Visible = True		
	call app.Dialogs(wdDialogFilePrint).Show

Das kann doch eigentlich nicht so schwer sein.
« Letzte Änderung: 23.11.07 - 10:41:00 von Puthy »

Offline Demian

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 569
  • Geschlecht: Männlich
Re: Drucken über Word mit Druckdialog
« Antwort #1 am: 23.11.07 - 11:18:42 »
Moin Puthy,

das liegt an dem wddialogfileprint. Das ist eine Wordspezifische Konstante, die Notes natürlich nicht kennt.

Laut Objektkatalog in Word hat sie den Wert 88. Probiers mal mit app.dialogs(88).show.

Gruß
Demian
Gruß
Demian

Offline Puthy

  • Frischling
  • *
  • Beiträge: 15
Re: Drucken über Word mit Druckdialog
« Antwort #2 am: 23.11.07 - 11:23:46 »
Verdammt ;) Danke das funktioniert einwandfrei.

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz