Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

launching word from my app

0 views
Skip to first unread message

Shaun Thornburgh

unread,
Aug 10, 2001, 11:53:18 AM8/10/01
to
Hi,

can anyone tell me how i launch a word document from my application. The
idea is that the word document will be a letter and it will contain the name
and address fields imported from the application. The application itself is
linked to an access database. Any help with this would be greatly
appreciated.

Shaun


Sebastian

unread,
Aug 20, 2001, 2:57:04 PM8/20/01
to
Put SHELLAPI in your USES clause.

Use the function SHELLEXECUTE with the name of your document.

to do this, Create PCHAR variables for the following:

1) Full Path Name to the file.
2) Directory of the file.

Use the function like this :
ShellExecute(Handle, 'open', <your first PCHAR., null, <your second PCHAR>,
SW_SHOWNORMAL).

if you have problems feel free to e-mail me

s_wy...@yahoo.co.uk

0 new messages