Simplest way is just to create a document template (blank word document
in your case) somewhere (for example you could use the same folder the
program runs from.)  First copy the template to the path and name you
require (in the program) and then issue the ShellExecute.  Easy!

This also has the advantage that the template document can be completed
for repetitive text when appropriate.

Regards,
       Brendan.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Stan
Sent: 10 October 2007 19:48
To: delphi@elists.org
Subject: Opening Word (or OpenOffice) with only a filename (non-existing
file)

Hi all,

   I want to open a word processor (OpenOffice or Word, whatever the
box has) to a new, empty .DOC document, but I also want to specify a
specific filename for it to be saved to (actually, path and name).
   I know how to use ShellExecute to open an existing file; how about
a non-existing file where I know what I want the resulting file to be
saved as?

   Delphi 5, Windows XP Pro.

Many thanks,
-- Stan
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi

Reply via email to