I have asked the question below a couple of times over the years, but I am still grappling with the issue. Perhaps someone can answer definitively whether is possible or not to ...
open an empty Word document not based on the Normal template (but a custom template) in a lister context menu
I have, during the last few days, tried many combinations of NEW and OPEN and other stuff, but always, I have come up short.
The most basic suggestion was to save an alternative empty document somewhere and create a button that copies it to a new file. That should still work if nothing else does. (If any of the other suggestions have stopped working, it may be more a question about versions of Word than Opus.)
No, Leo, the most basic question is whether the developers of DOpus know if it is possible to open an new Word documents using a non-Normal.docm template in Dopus.
Jon, NEW works well with the Normal template, but not with a custom-made template. I respectfully refuse to believe this is a MS issue. I believe that Dopus does not provide the custom-template option. NEW must have an intrinsic option for Normal.docm, but not the same option for a custom template. If I am wrong about this, I will admit it, but I am skeptical.
Opus has absolutely nothing whatsoever to do with Word templates.
The NEW menu just creates a file as specified in the registry. It's up to Word to specify the file that is created.
If you want to create a different file to the one Word normally makes, you can make a copy of that file somewhere and make an Opus button which copies it to a new place. (This is actually all the NEW menu does in many cases. The location of the file to copy is in the registry.) Instructions on how to do that are in one of the threads above.
Word may also have a command line argument or something else which can tell it to open or create a new file using a different template to normal. There seemed to be some discussion about that in one of the threads as well. But that's a question about how to use Word, not Opus. It has nothing at all to do with Opus, unless you have questions about how to turn thr command line into an Opus button, which we can answer. We can't answer many questions about Word as we didn't write Word, aren't experts in it, and aren't paid to support it. Those are Microsoft's jobs (or you may find answers on a more general help site or a site about Word).
I think the older threads already have at least two solutions that you should be able to use, and that you also said worked in the past.
Create your custom template and save it in word. It is located in: C:\Users\USERNAME\Documents\Custom Office Templates\customtemplate.dotx
Then use REGEDIT, open HKEY_CLASSES_ROOT and look for .dotx.
I'm using Win10 so I go into: .dotx\word.template.12\shellnew and create the registry key and string value mentioned in that link.
Then copy your: C:\Users\USERNAME\Documents\Custom Office Templates\customtemplate.dotx
to: C:\windows\shellnew and go back to REGEDIT and create that last entry with your filename as mentioned also in the link i provided.
Also: There is a commandline switch: Winword.exe /tcustomtemplate (NOTE THERE IS NO SPACE BETWEEN /t AND customtemplate) it only opens word with the specified custom template, but it's not what you want, it opens it but you have to save it yourself.
DOPUS itself is not created to manipulate registry entries, if "microsoft" does not provide a way to open as new custom template, and you do not have admin rights, THEN there is OPUS to solve it with alternative methods, like Leo described, creating a button which copies your template file to the desired location then opens it. You can put the button on any of the DOPUS rightclick menus.
I'm in an office where I can not test it due to not being able to edit registry values, but I hope this was helpful.
Ok so on my home computer i tried it. I have Win10 with Office2016. For me, it works, but i figured out the description i gave you is a bit incorrect. So once more:
Use REGEDIT, open HKEY_CLASSES_ROOT and look for .dotx
Create a NEW KEY under .dotx named ShellNew
Under ShellNew create 2 string values: NullFile and FileName
ShellNew is just empty, but FileName must contain the path to customtemplate, for example: C:\Users\Doug\Documents\Custom Office Templates\customtemplate.dotx
On my system it works. I right click in Windows Explorer, go to New, select Microsoft Word Template. The result is a created file with active inline renaming. So i enter name or just press enter, then if i open that document it will be my saved custom empty template.
Win7 should have kind of the same structure in the registry. I havent been experimenting with a DOPUS button to create the new template and then also open it, but the above method will be system wide.
About FileTypes in DOPUS
By editing FileTypes you are not gaining anything new in the "NEW context menu" which is an operating system (Windows) function, but you will gain a new entry when you right-click the file itself (not when right-clicking on empty space in the DOPUS lister or Windows Explorer). Your FileType settings only matter if you edit the File Type, Action, Open: C:\Program Files (x86)\Microsoft Office\Office14\WINWORD.EXE /n "%1" because it can make Word open the file with different commandline switches and if you mistype or make an error in it then Word may not be able to open the file if you double-click on it.
Hi HansL! What you described is the purpose of a template, so users dont accidentally overwrite it lets say in an office environment where lotsa people use the same. If you create a template and if you open it, it always asks for a SAVE AS if you try to save it. It is its function. So to get what you need, i was experimenting: docd.zip (764 Bytes)
So the thing is, to do what you want, you need to modify the default .DOCX entry in the REGEDIT. To avoid it, i created a .DOCD extension and defined it to open a pre-saved document (.docd\SHELLNEW, basically i copied the .docx and edited it). Now when i right click i get a new document "template" but not in word sense, in theory, because it will be just a saved .docx which is in my C:\TEMP\customtemplate.docx. Right-click, New, Create... i get New Microsoft Word Document.docd with active inline renaming. Press enter or give name. If .docd is open, i edit it then save it, right there where i created it. For this i linked you a simple REGEDIT export of the mentioned .docd format.
This is how my registry looks. I exported the .docx, edited it and renamed docx to docd, then edited it in regedit to look like this:
I do not know if its possible to rename things in the "New Context Menu", havent found a solution for that, so you will see two of the same "Microsoft Word Document" one will be my .docd and the other will be the real .docx. So the method works, import my stuff into your registry and test it. If you really really need this functionality then you should modify YOUR default .docx in your registry, but if you get any errors you may have to repair it yourself by running office setup repair.
If this is all too complicated or fiddly for you, here comes DOPUS. Create a word document, format it, save it, then create a button just like Leo told you. Save your doc, put it in a directory and the button will copy it to the current folder you are viewing and open it.
Tortilladude, I am giving up this effort, since there seems to be no other way than to edit the Normal.dotm; then, what I want works. However, I do not want to fiddle with Normal, so I will go with the DOpus button.
Thank you for your valiant efforts, which at least has shown that what I want cannot be done.