Re: Forms5 button calls Word-97

From: <mdesouza_at_YAHOO.COM>
Date: Wed, 23 Dec 1998 09:17:21 GMT
Message-ID: <75qcf0$2at$1_at_nnrp1.dejanews.com>


VAL [Quoted]   if msg_alert part of the win_api library , cant seem to compile comes up with an error

[Quoted] If I change it to a normal message with a simple error it works file

regards

michael dsouza

In article <367F6187.1FE96838_at_dd.ru>,   "Valery A. Sorokin" <vsorokin_at_dd.ru> wrote:
> Try to use something like this:
>
> ...
> tmp_Cmd := 'winword.exe '||filename;
> BEGIN
> WIN_API_SHELL.WINEXEC(tmp_Cmd, WIN_API.SW_SHOWNORMAL, TRUE);
> EXCEPTION
> WHEN OTHERS THEN
> msg_alert('Error: Can't start: '||tmp_Cmd,'W',null);
> ...
> END;
> ...
>
> You have to use D2KWUTIL.PLL and to have D2KWUT32.DLL on your machine.
>
> I hope this will help you.
>
> ThePozz wrote:
> >
> > Hi,
> >
> > I have some problems to start Word-97 from under a button in Forms5,
> > running under Win98. The Word-filename is dynamically built from a few
> > columns in the database. I tried a HOST(filename), and also a
> > HOST('winword '||filename) command from within a when-button-pressed
> > trigger, with and without a NO_SCREEN.
> > If I give the same command ('<filename>.doc') in a Win98 'Start' window
> > or a DOS-box, it works fine.
> > What am I doing wrong ?
> >
> > Thanks in advance
> >
> > Jan Pieter Post
>
> --
> Valery A. Sorokin
> ProSoft, Russia, Moscow, Information Systems Division
> Phone: +7 (095) 234 0636 (6 lines) FAX: +7 (095) 234 0640
> E-mail: vsorokin_at_dd.ru OR vsorokin_at_prosoft.ru
> http://www.dd.ru
>

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Wed Dec 23 1998 - 10:17:21 CET

Original text of this message