1. Starting Word from Euphoria

How would I start Microsoft Word (actually, a particular template file) using
Win32Lib?

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » topic index » view message » categorize

2. Re: Starting Word from Euphoria

cklester wrote:
> 
> How would I start Microsoft Word (actually, a particular template file) using
> Win32Lib?
> 
> -=ck
> "Programming in a state of Euphoria."
> <a
> href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a>


What's wrong with system_ exec() ?
Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

3. Re: Starting Word from Euphoria

> How would I start Microsoft Word (actually, a particular template file) u=
sing
> Win32Lib?

shellExecute( "open", "template file name", SW_SHOWNORMAL )


There's also a way to use DDE if this doesn't suit your needs.

~Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: Starting Word from Euphoria

cklester wrote:
> 
> How would I start Microsoft Word (actually, a particular template file) using
> Win32Lib?
> 

Another option would be to use COM.  You could take a look at the Excel
demo that comes with EuCOM to get an idea of how to do this.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

5. Re: Starting Word from Euphoria

Bernie Ryan wrote:
> cklester wrote:
> > How would I start Microsoft Word (actually, a particular template file)
> > using
> > Win32Lib?
> What's wrong with system_ exec() ?

I don't want it to hang my Euphoria program. That is, I want Word started and
run independent of the Euphoria program.

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

6. Re: Starting Word from Euphoria

Greg Haberek wrote:
> 
> > How would I start Microsoft Word (actually, a particular template file) u=
> > sing Win32Lib?
> 
> }}}
<eucode>
> shellExecute( "open", "template file name", SW_SHOWNORMAL )
> </eucode>
{{{


Thanks, Greg! That works perfectly.

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

7. Re: Starting Word from Euphoria

cklester wrote:

> 
> Bernie Ryan wrote:
> > cklester wrote:
> > > How would I start Microsoft Word (actually, a particular template file)
> > > using
> > > Win32Lib?
> > What's wrong with system_ exec() ?
> 
> I don't want it to hang my Euphoria program. That is, I want Word started and
> run independent of the Euphoria program.

Hi CK,

Try please:

integer i
i=1

system("START /DC:\\ /MIN /NORMAL WINWORD.EXE", 2)
system("START /DC:\\ /MIN /NORMAL NOTEPAD.EXE", 2)
-- works with exw.exe for me without hanging

system("CMD /C \"START /DC:\\ /MIN /NORMAL WINWORD.EXE\"", 2)
-- works with ex.exe and with exw.exe for me without hanging too

position(2,1)
? i

while get_key()=-1 do
end while


Try also in Windows console:

start /?

then

cmd /? 

Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu