🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.authorware
Article #255

Re: A3W: Printing with ShellExecute and MS Word

#255
From: Jamie Stallwood
Date: Sat, 13 Dec 1997 00:00
34 lines
2082 bytes
Have you tried setting your authorware window topmost with the SetWindowPos()
API? You could deteect when the PDialog appears by enumerating a list of window
titles. Have a fiddle with that.

On Fri, 12 Dec 1997 14:12:17 -0500, James D. Young scribed here:

> I'm having troubles using the ShellExecute function to print documents from
> Authorware using MS Word. The directions specified in Technote #3072 -
> printing with ShellExecute worked great with Wordpad, but now I'm trying the
> same thing with Word and am unable to hide the word application with "0" for
> the Window mode parameter. I've tried it two ways to no avail:
> error:=ShellExecuteA(WindowHandle, "print", "mydoc.doc", FileLocation, 0)
> and
> error:=ShellExecuteA(WindowHandle, "open", "c:\\program Files\\Microsoft
> Office\\Office\\Winword.exe", "mydoc.doc", FileLocation, 0)
> Both methods show the Word splash screen, then Word, then the document
> within Word, and finally, the print dialog. I, of course, just want to see
> the print dialog. Again, it worked great with Wordpad and notepad, (showing
> only the print dialog, but not with Word. Anyone got any suggestions?
> Thanks in advance,
> James
> *************************************
> James D. Young, Ph.D.
> jyoung@mailer.fsu.edu
> http://mailer.fsu.edu/~jyoung
> 
> 

**************************************************
Jamie Stallwood
Customer Support Software Engineer
e: big_j@bigfoot.com           p: 0117 927 6922
m: 0410 089391                 f: 0117 927 6938
Technical Details
Message-ID: <34995e49.314688538@news.dircon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <66s25a$d42$1@news.fsu.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f49cb,943f6543e6dece7d
X-Google-Attributes: gidf49cb,public
From: big_j@bigfoot.com (Jamie Stallwood)
Subject: Re: A3W: Printing with ShellExecute and MS Word
Date: 1997/12/13
Message-ID: <34995e49.314688538@news.dircon.co.uk>
X-Deja-AN: 297807880
Sender: ANGate5@dircon.co.uk
References: <66s25a$d42$1@news.fsu.edu>
Reply-To: Jamie Stallwood <big_j@bigfoot.com>
Distribution: World
Organization: Jamie Stallwood, Software Consultant
Newsgroups: bit.listserv.authorware