Hi,
I tried TweakUI and it only lets me change the document that word uses as
a template. I'm still stuck with one document template. Is there a way to
have, say, three word templates such as New->Packing List, New->Parts List,
New->Covering Letter?
I tried adding a new document type in the registry for
Word.Document.MSPackList
[HKEY_CLASSES_ROOT\.doc\Word.Document.MSPackList]
[HKEY_CLASSES_ROOT\.doc\Word.Document.MSPackList\ShellNew]
"FileName"="11151065.doc"
(11151065.doc is a word document in the C:\Documents and Settings\All
Users\Templates folder that I want to use as the template)
I added a new class (see below, basically copied from the word document
class, new GUID), but still nothing comes up in the File->New menu. What
haven't I understood?
Thanks
Adrian
My new class:
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}]
@="Word.Document.MSPackList"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\AuxUserType]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\AuxUserType\2]
@="Document"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\AuxUserType\3]
@="Microsoft Word"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Conversion]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Conversion\Readable]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Conversion\Readable\Main]
@="MSWordDoc,WordDocument,Word.Document.6,1"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Conversion\Readwritable]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Conversion\Readwritable\Main]
@="MSWordDoc"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\DefaultFile]
@="MSWordDoc"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\DelayRenderFormats]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\DelayRenderFormats\0]
@="Woozle"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\GetSet]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\GetSet\0]
@="Embed_Source,1,8,1"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\GetSet\1]
@="1,1,1,3"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\GetSet\2]
@="3,1,32,1"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\GetSet\3]
@="HTML Format,1,1,3"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\GetSet\4]
@="Rich Text Format,1,1,3"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\GetSet\5]
@="NoteshNote, -1,1,1"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\PriorityCacheFormats]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DataFormats\PriorityCacheFormats\0]
@="Rich Text Format"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DefaultExtension]
@=".doc,Word Document (.doc)"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DefaultIcon]
@="C:\\WINDOWS\\Installer\\{90110409-6000-11D3-8CFE-0150048383C9}\\wordicon.exe,1"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\DocObject]
@="16"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Implemented
Categories]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Implemented
Categories\{000C0118-0000-0000-C000-000000000046}]
@=""
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\InprocHandler32]
@="ole32.dll"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Insertable]
@=""
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\LocalServer32]
@="C:\\PROGRA~1\\MICROS~2\\OFFICE11\\WINWORD.EXE"
"LocalServer32"=hex(7):27,00,5d,00,67,00,41,00,56,00,6e,00,2d,00,7d,00,66,00,\
28,00,5a,00,58,00,66,00,65,00,41,00,52,00,36,00,2e,00,6a,00,69,00,57,00,4f,\
00,52,00,44,00,46,00,69,00,6c,00,65,00,73,00,3e,00,50,00,60,00,6f,00,73,00,\
2c,00,31,00,40,00,53,00,57,00,3d,00,50,00,37,00,76,00,36,00,47,00,50,00,6c,\
00,5d,00,58,00,68,00,00,00,00,00
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\MiscStatus]
@="0"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\MiscStatus\1]
@="1"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\OfficeCompliant]
@=""
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\PersistentHandler]
@="{98de59a0-d175-11cd-a7bd-00006b827d94}"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Printable]
@=""
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\ProgID]
@="Word.Document.8"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\TypeLib]
@="{00020905-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Verb]
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Verb\0]
@="&Edit,0,2"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Verb\1]
@="&Open,0,2"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\Version]
@="9"
[HKEY_CLASSES_ROOT\CLSID\{8611AFE4-99CB-4dd5-9D7B-81E1F56E7151}\VersionIndependentProgID]
@="Word.Document"
"David Candy" <.> wrote in message
To add a file-creation command to the New submenu, your application's files
must have a file class associated with them. Include a ShellNew subkey under
the file extension key. When the File menu New command is selected, the
Shell will add it to the New submenu. The command's display string will be
the descriptive string that is assigned to the program's ProgID.
Command
Executes an application. This is a REG_SZ value specifying the path of the
application to be executed. For example, you could set it to launch a
wizard.
<Path to Word>\winword.exe [/a] [/c] [/ltemplate name] [/n] [/m[macroname]]
[/t] [/w] [/x] [/regserver] [/unregserver] [filename] [filename]
Switch Meaning
Blank Starts a new Word window in an existing instance of Word.
/a Starts Word without a template (including startup addins) Word 6
only
Starts Word without a template (including startup addins) or options
stored inthe registry, Word 95, 97, & 2000. only
/c Starts Word and runs Netmeeting. Word 2000 only.
/l Load a specific addin Word 95, 97, & 2000 only
/n No new default document
/m Runs a macro [/mmacroname] or prevent autoexec from running [/m]
Word 6, 95, 97, & 2000.
Run a macro [/mmacroname] Word 1 & 2 only
Cannot be used with the /t switch
/t Bases a new document on the specified document Word 95, 97, & 2000.
Starts the Tutorial Word 1 only
/w Without displaying Tip Of The Day Word 6 only
Starts a new instance of Word. Word 2000 only.
/x Starts a new instance of Word that only accepts one DDE
conversation. Used by the Windows shell for printing. Word 97 & 2000.
/regserver Registers Word in the registry. Word 95, 97, & 2000.
/unregserver Unregisters Word in the registry. Word 95, 97, & 2000.
Filename Opens a file
Filename Filename Opens multiple files Word 6, 95, 97, & 2000.
The office Startup Application is a small companion program with the
following command line switches. It also provides services for starting
Office Help and in 2000 performs a test to see if Auto Repair should run.
Word 97
<Path to Office>\osa.exe [/b] [/f] [/n]
Word 2000
<Path to Office>\osa9.exe [/b] [/f] [/l] [/n]
Switch Meaning
/b Initilises OLE and some fonts so OLE programs will start faster.
It's tuned for office programs and basically puts the OLE libraries into the
disk cache.
/f Displays the Open Office Document dialog box.
/l Checks to see if the Office Toolbar should be loaded at startup,
and if so start the Office Toolbar.
/n Displays the New Office Document dialog box.
Examples
C:\Program Files\Microsoft Office\Office\winword.exe Filename
C:\Program Files\Microsoft Office\Office\winword.exe Filename Filename
C:\Program Files\Microsoft Office\Office\winword.exe /a
C:\Program Files\Microsoft Office\Office\winword.exe /n
C:\Program Files\Microsoft Office\Office\winword.exe /m
C:\Program Files\Microsoft Office\Office\winword.exe Filename /mmacroname
C:\Program Files\Microsoft Office\Office\winword.exe /tDocumentPathAndName
C:\Program Files\Microsoft Office\Office\winword.exe /t
C:\Program Files\Microsoft Office\Office\winword.exe /lAddinPathAndName
C:\Program Files\Microsoft Office\Office\winword.exe Filename /w