WinHelp macro (or web link) to open new file using Word template?

Subject: WinHelp macro (or web link) to open new file using Word template?
From: "Hart, Geoff" <Geoff-H -at- MTL -dot- FERIC -dot- CA>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Thu, 8 May 2003 08:47:15 -0400

Christine Anameier wonders: <<I want to set up a link in a WinHelp file that
will create a new file from a Word template. ExecFile just opens the
template itself-not good, that'll create too many ways for our users to get
confused. I want them
to click the link and see a new Document1 based on the template. Been
playing around with ShellExecute too, but to no avail.>>

You're gonna hate yourself... <g> Open the template in Word and do a "save
as", but with two quirks: first, make sure the document type is set to Word
document (rather than Word template); second, choose Document1 as the file
name. Now all you need to do is use the ExecFile macro. Voila! A document
called Document1, based on the template, opens up.

One big catch: if a user now saves the document (rather than doing "save
as"), they'll replace your Document1 with their document. There are a few
ways to solve this, most obviously by setting Document1 to be "read only",
which will force them to choose a new file name, or by protecting the
document directory so they don't have the rights to save files in that
directory. Both should work.

--Geoff Hart, geoff-h -at- mtl -dot- feric -dot- ca
Forest Engineering Research Institute of Canada
580 boul. St-Jean
Pointe-Claire, Que., H9R 3J9 Canada

"It's one thing to see death coming at the hands of your own creation.
That's part of the human epic tradition, after all. Oedipus and his father.
Baron Frankenstein and his monster. William Henry Gates and Windows
'09."--David Brin, _Kiln People_


Order RoboHelp X3 in May and receive a $100 mail-in rebate, PLUS
free RoboScreenCapture and WebHelp Merge Module.

Order RoboHelp today:

ATTENTION FrameMaker Users: Fill-out the following survey
to receive a chance to win a FREE RoboScreenCapture.

FM users only please:

You are currently subscribed to techwr-l as:
archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit for more resources and info.

Previous by Author: Book on Documenting APIs/SDKs?
Next by Author: License agreement/information?
Previous by Thread: WinHelp macro (or web link) to open new file using Word template?
Next by Thread: RE: WinHelp macro (or web link) to open new file using Word template?

What this post helpful? Share it with friends and colleagues:

Sponsored Ads