Re: Forms5 button calls Word-97
Date: Tue, 22 Dec 1998 12:08:23 +0300
Message-ID: <367F6187.1FE96838_at_dd.ru>
Try to use something like this:
...
tmp_Cmd := 'winword.exe '||filename;
BEGIN
[Quoted] 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.ruReceived on Tue Dec 22 1998 - 10:08:23 CET