{{tag>category:"OpenInsight 32-bit" author:"Barry Stevens" author:"Hank Huizinga"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== OLE Word.Application (OpenInsight 32-bit) ====
=== At 04 AUG 2011 12:34:42AM Barry Stevens wrote: ===
I am using OleCreateInstance("Word.Application") and associated olegets puts and methods
How do I get msword to request a printer selection
have found this but cant work out how to convert it.
prntDlg :=
wrdApp.Dialogs.item(wdDialogFilePrint);
printDlg.Show;
----
=== At 04 AUG 2011 08:22AM Hank Huizinga wrote: ===
Try this:
wdDialogFilePrint = 88 ;* &H58
objDialogs = OleGetProperty(oWrd, "DIALOGS")
objPrint = OleCallMethod(objDialogs, "ITEM", wdDialogFilePrint)
x= OleCallMethod(objPrint, "SHOW")
----
=== At 04 AUG 2011 06:07PM Barry Stevens wrote: ===
Thank you very very much, I shall try this and also analyze how this is translated and hopefully file where I can find it again. I am sure Bob had something somewhere!
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=697B037B0004EE017673A9D00|View this thread on the Works forum...]]