Re: Forms5 button calls Word-97
Date: Tue, 29 Dec 1998 12:05:24 +0300
Message-ID: <36889B54.FF3EFA83_at_dd.ru>
mdesouza_at_YAHOO.COM wrote:
>
> VAL
>
> if msg_alert part of the win_api library , cant seem to compile comes up
> with an error
No. It isn't part of the the win_api library. It's a procedure generated by Designer/2000. I'm sorry for using it here without notice.
Sure, you can use any of your messaging functions or you can use 'message' as is.
>
> 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.
[snip]
> > > 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 ?
[snip]
-- 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.ruReceived on Tue Dec 29 1998 - 10:05:24 CET