Regarding Words default normal .dotm

Hi All,
Is there a method to restore words default normal.dotm file  as soon as the add in loads? and delete the existing user created .dotm file? using c# or vba?
Regards,
Apoorva

Thanks Eugene , the scenario is that if I deploy my add in on another user's system and they have customised their normal.dotm file, I want to delete their normal.dotm as soon as my add in loads.
Can you please elaborate on how i can accomplish this using System.IO namespace classes with my current ribbon add in solution?  this
is what i have tried so far,but no use, it still uses the old normal .dotm file instead of creating a new one.
private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
            string fileName = "Normal.dot";
            var targetPath = Path.Combine(Environment.GetFolderPath(
    Environment.SpecialFolder.Templates));     //users/appdata/roaming/microsoft/templates
            string destFile = System.IO.Path.Combine(targetPath, fileName);
            if (System.IO.File.Exists(destFile))
                // Use a try block to catch IOExceptions, to
                // handle the case of the file already being
                // opened by another process.
                try
                    System.IO.File.Delete(targetPath);
                catch

Similar Messages

  • Custom Word 2010 Normal.dotm file not applying

    I have replaced the Normal.dotm file with a file with out letterhead information on it. On some computers its not applying though. I saved the letterhead file as Normal.dotm and have replaced the Normal.dotm file on their computer but when they open Word
    it still opens a blank document. If I replace it on my computer it loads the letterhead file and the same with other users. Its just a select few that ignore the new Normal.dotm file.
    I can prove that the file has the letterhead text by renaming the file on their computer and then opening it. When I do this it opens with the letterhead text.
    Free computer help and tips http://www.onlinecomputertips.com

    A part of the problem you are seeing is that Word creates its own normal.dotm file when it can't find one where it is supposed to look.
    Here is a link to the Microsoft take on sharing the normal template.
    You Cannot Share the Normal.dot[m] File Among Multiple Users This is an older article but nothing it says has changed. That is how Word works. When I first was setting up a
    LAN using Word, I tried sharing the normal template as well. It is intuitive to do so; but it does not work. The more users you have the more problems it can cause. It is likely that you have had problems with sharing normal.dotm but not recognized that the
    problems were caused by that.
    The normal template is intended to be a personal workspace/resource and should not be overwritten from a main source. It should be stored in the user templates folder (which also should not be a shared folder). You certainly can create a customized normal.dotm
    template and distribute it as a starting point but there is little reason to do so.
    Overwriting someone else's normal.dotm template is a bit like opening the drawers in their desk and rearranging them, tossing out items if you don't know their purpose. I learned long ago to not be going through my secretary's drawers!
    If you want to standardize your documents you can do that with a combination of
    Workgroup Templates and
    Global Templates. Global templates will let you share custom building blocks, macros, ribbon and QAT modifications. You can even use them to share styles although usually that is better
    done through document templates.
    It is quite possible to have a different template than the normal template be the basis for the blank document you see when you start Word or for when you use Ctrl+N. There are examples of this on my downloads page.
    Downloads - Microsoft Word - Add-Ins - Tutorials - Letterhead - Templates
    Charles Kenyon Madison, WI

  • Word 2010 normal.dotm

    Several client make use of the normal.dotm as they start Word 2010, The configuration in Word 2010 loads a normal.dotm on a networkshare.
    I have made a change to the normal.dotm that is changed fonttype and size. Several clients show that change when they start Word but several clients show another font. The font is on al clients because it is Arial so that cannot be the cause. it looks like
    several clients do not load / read the \\fileshare\normal.dotm correctly.
    When i load the \\fileshare\normal.dotm manually thru file - open , then the font is changed accordingly what i have set, but the same file is in the setting of word to load at startup but then it is not the right font....
    When i start Word 2010 and choose file - open in the left above corner one can choose templates. The location of that template is different then the one set in the settings of Word.
    How can this be, what is wrong?
    freddie

    A part of the problem you are seeing is that Word creates its own normal.dotm file when it can't find one where it is supposed to look.
    Here is a link to the Microsoft take on sharing the normal template.
    You Cannot Share the Normal.dot[m] File Among Multiple Users This is an older article but nothing it says has changed. That is how Word works. When I first was setting up a
    LAN using Word, I tried sharing the normal template as well. It is intuitive to do so; but it does not work. The more users you have the more problems it can cause. It is likely that you have had problems with sharing normal.dotm but not recognized that the
    problems were caused by that.
    The normal template is intended to be a personal workspace/resource and should not be overwritten from a main source. It should be stored in the user templates folder (which also should not be a shared folder). You certainly can create a customized normal.dotm
    template and distribute it as a starting point but there is little reason to do so.
    Overwriting someone else's normal.dotm template is a bit like opening the drawers in their desk and rearranging them, tossing out items if you don't know their purpose. I learned long ago to not be going through my secretary's drawers!
    If you want to standardize your documents you can do that with a combination of
    Workgroup Templates and
    Global Templates. Global templates will let you share custom building blocks, macros, ribbon and QAT modifications. You can even use them to share styles although usually that is better
    done through document templates.
    It is quite possible to have a different template than the normal template be the basis for the blank document you see when you start Word or for when you use Ctrl+N. There are examples of this on my downloads page.
    Downloads - Microsoft Word - Add-Ins - Tutorials - Letterhead - Templates
    Charles Kenyon Madison, WI

  • Word 2011 normal.dotm template

    How can this template be modified? I'd like to delete some styles.
    When the template is opened, it just creates a New Word file.

    This is a Microsoft question - please try in the Office for Mac forums.

  • Have replaced the normal.dotm in Windows 8 in %appdata%\Microsoft\Templates\ and in %appdata%\Microsoft\Word\Startup. None of my customizations have come over. Keeps reverting to default. Where else can I look?

    None of the above helps. Brand new computer and I want my normal.dotm to populate. Have copied it into all the know locations but when I open word it is still the default template which has none of my autotext, or toolbars.

    Hello,
    The first path (%appdata%\Microsoft\Templates\) looks correct. I have tried this on my own computer and that works for me. Not sure what’s the root problem, but please follow my steps exactly below and try again to see if it works this time:
    1.Navigate to %appdata%\Microsoft\Templates\
    2.Rename existing Normal.dotm to a different name, say Normal.dotm.old.
    3.Copy your own Normal.dotm file to %appdata%\Microsoft\Templates\
    Please then close and restart Word to see if it works this time.

  • Word default font without normal.dot

    Hey,
    I try to set Microsoft Office Word 2010 X86 default font via group policy.
    (So when I open word the new document opens with default font e.g. Arial and font size 11)
    Currently we are doing this through 'normal.dot' file, which is copied at every logon to the path %AppData%\Microsoft\Normal.dot .
    Unfortunately Normal.dot changes more than just these two settings and some users need to be able to customize some other things stored in normal.dot through their logoff/logons.
    How can the default font and font size be set via group policy without using the 'normal.dot'?
    I already had a look at the Microsoft Office 2010 adm/admx files but I was not able to find any setting like these.
    Thank you for support.

    Hi,  
    As far as I know, we can’t set the default font and font size for Word without using the normal.dotm.
    For more information about this, the following threads can be referred to.
    How to change the default font in Word 2010 when using Microsoft Office customization Tool
    https://social.technet.microsoft.com/Forums/office/en-US/fd04c073-831e-4399-83d0-1779a775d164/how-to-change-the-default-font-in-word-2010-when-using-microsoft-office-customization-tool?forum=officeitproprevious
    Defining Office 2010 fonts using GPO's
    https://social.technet.microsoft.com/Forums/office/en-US/6687fa7d-99da-42ee-8fc9-c18320563613/defining-office-2010-fonts-using-gpos?forum=officesetupdeployprevious
    if you still have any question about this, please post your question in the Office forum.
    https://social.technet.microsoft.com/Forums/en-US/home?forum=officeitproprevious
    Best Regards,
    Erin

  • Changes to Normal.dotm in Word 2007

    Hello,
    I have created a new "Blank Template.dotm" which essentially is a blank document that prompts users to enter in document properties, etc. The template works fine in Word 2007 (Office 2007 SP3). The requirement is to make this document the normal.dotm;
    default work template when opening.
    What I have discovered is that when taking the "Blank Template.dotm" and renaming it to "normal.dotm" the same template does not work. A user is not prompted for the document properties and when printing, the headers and footers are filled
    with document reference errors.
    Additionally, when I say "prompted for the document properties" what I mean is the document properties feature in work;
    Click on Word Ord | Prepare | Document Properties
    Can anyone shed some light on this? I can share a copy of the template if required.
    Thanks!

    A basic problem is that it is virtually impossible for an ordinary person to create a template to substitute for the normal template in Word.
    I'm not saying impossible; I am saying I would not try it. The normal template produced by Word has a number of components that are not part of other templates produced by Word. This was more true in earlier versions of Word but remains the case in the Ribbon
    versions. See
    Normal Template for more on this.
    Is there any reason your code cannot be in a
    Global Template other than the normal template?
    The Add-Ins at http://addbalance.com/word/download/LetterheadAddin.zip gives an example of an Add-In that runs code whenever Word starts and whenever a new document is created.
    In addition, there is an option in Word to prompt for these properties. Why not just reset that option?
    http://www.quepublishing.com/articles/article.aspx?p=731710&seqNum=10
    I believe the command is:
    Application.DisplayDocumentInformationPanel=True
    If that is placed in an AutoExec macro in a global template it may do what you want.
    Otherwise Jay Freedman provided the following macro which only acts on the first save:
    Sub FileSave()
        ' Simulate the "Prompt for document properties" option of 2003.
        ' When the document is saved for the first time, open the
        ' Properties dialog.
        On Error Resume Next
        If Len(ActiveDocument.Path) > 0 Then
          ' The document has already been saved at least once.
          ' Just save and exit the macro.
          ActiveDocument.Save
          Exit Sub
        End If
        ' This is the first save. Show the dialog.
        Dialogs(wdDialogFileSummaryInfo).Show
        ' Now save.
        ActiveDocument.Save
    End Sub
    Charles Kenyon Madison, WI

  • Cisco CuciLync and Normal.dotm file of MS Word 2010

    Hello, I came across a crazy problem with the Cisco CuciLync (version 8.5.4) plugin and Microsoft Word 2010 (32Bit). I have 5 Word documents (in the .docx file format) at the same time on my computer (with Windows 7 Enterprise Edition 64bit). The Word documents have about 5-10 pages of content. I start to modify the first Word document, save these changes, now I switch to a 2nd Word document, make some changes there and save it. If I close now 1 of the 5 open Word documents, I get the following 2 error messages "This file is in use by another application or user. C:\Users\user_name\...\Normal.dotm" and  "Changes have been made that affect the global template, Normal.dotm. Do you want to save those changes?" If I disable now the Cisco.ClickToCall in Microsoft Word, I do the same modifications, I do not get these error messages. Can anybody help me with this issue? Any idea where it comes from? Please find attached a Screenshot of the error messages from Microsoft Word. Best regards, Marc Hoffmann

    You should try asking in the Office for Mac forums since your question is about Word. http://answers.microsoft.com/en-us/mac

  • Publishing Word templates and the Normal.dotm

    01smicha wrote:
    Does the gpo use the 'update' method? That should stop any changes made by the user from sticking around for too long.
    Hi, thanks for your input - im not familiar with the gpo setting for that, only when running from a command prompt. Where would I find this ?
    Looking at the gpo (I didn't do this by the way) it runs a bat file that does and xcopy of the folders that contain the normal.dotm

    Hello fellow Spice folks!So in a firm of approx. 200, we use a normal.dotm file, pushed out by GPO, for company styles, AutoText templates etc. When a change to the template is needed, we (or I) update the master copy, and let the GPO copy it back to client machines.Problem with this is quite often the client version of the normal.dotm gets corrupt, grows in size from people saving data to it some how (from the 730kb template to 2 or 3mb) causing issues when opening word and pissing of the users, and in turn me ! This method seems pretty barbaric to me, given that a firm I worked with 3 years ago used the same technique to publish company styles and saw same problems.What technology / method do you employ to distribute a shared company style to your client machines ?If I like it , I want it too !
    This topic first appeared in the Spiceworks Community

  • Word cannot open the existing global template Normal.dotm. What can I do?

    Word cannot open the existing global template Normal.dotm. What can I do?

    Word cannot open the existing global template Normal.dotm. What can I do?

  • Deploying Normal.dotm through OCT doesn't work in Office 2013

    I am trying to install a custom normal.dotm Word Template file with the initial install of Office 2013.
    I am using the Office Customization Tool to create an automated install of Office 2013 in the exact same way I did in Office 2010.I am utilizing the Additional Content>Add Files & Additional Content>Remove Files sections to include a custom normal.dotm
    file and place it in the [AppDataFolder]\Microsoft\Templates directory. (The remove files section runs first and removes the same file name before it installs the file I want.)
    This works perfectly fine in Office 2010. After I complete the setup process using the customized Office 2013 files however, I get an error message in Microsoft Word that says "Sorry, we had trouble getting the featured templates and can't show them
    right now." Also, when I look in the path on the Windows 8 machine this is being tested on, there actually is no Normal.dotm file at first launch but depending on how many times I launch Word it shows up in a few launches or there is a NormalPre.dotm
    file in the directory instead. Even when the file shows up I get the same error message in
    Why is this not working? How can I accomplish rolling out a custom Normal.dotm file with the install of Office 2013 using OCT?

    This is what i did to get it working as i wanted it.
    I stripped out configuring the Language in the OCT tool
    I added my customised normal.dotm with my customisations in OCT
    I added the "MigrateNormalOnFirstBoot" registry key in OCT
    I currently am creating an Office 2013 script using vbscript (.vbs file) for the purpose of installing either MSOffice 2013 x86 or x64 versions - i then added the creation of the following registry entry via the vbscript after the msoffice setup command
    line part.
    - HKCU\Software\Microsoft\Office\15.0\Common\LanguageResources
    - i created a DWORD key here called "InstallLanguage" with the value of the language i want Word to default to.  In my case it was a value of "2057" for English UK.
    With this combination i have a one click MSOffice 2013 script that installs MSOffice 2013 on either a 32bit or 64bit system. 
    I'm pretty sure you could leverage off a function in OCT to achieve the same as i have.  Just a note - i did try to add the registry key first in OCT's "Add Registry entries" however this didn't work as it didn't create the registry keys before first
    launching Word.  Maybe you could also consider in OCT under SETUP \ Add Installations and Run Programs to run a .bat or reg to .exe file to achieve the same result.

  • Hi Sir! I have some questions regarding word report generation please.1.How can i add border to a word page?.2.How can i add grid lines to a table generated in word report?.3.How can i add border to a table of word report?.Thanks Imran Pakistan

    Hi !
    Sir I have some questions regarding word report generation using(C language in labwindows) Please.
    1.How can i add border to a word page?.
    2.How can i add border and grid lines to a table generated in word report(Not the " cvi table control" inserted from gui,i am asking about the table generated in word report)?
    3.How can i fill a cell of word report table withe the data type other than "character"?.
    And sir one question about use of timer in cvi labwindows please.
    Sir i'm trying to set minimum delay interval of timer control to 1millisecond(0.001s),as i set ,timer don't cares of the interval that is set by me it responds only to the default minimum time interval which is i think 10milliseconds(i'am using windows xp service pack3 version 2002).
    Regards
    Imran
    Pakistan
    Solved!
    Go to Solution.

    Hello sir!
    Sir i'm using daq6251.But Sir before implimenting it to my final application now i'm just trying to achieve 1millisecond time interval for timer in a vary simple programe i mean at this time no hardware (daq device) is  involved i,m just trying to achieve minimum time interval of 1millisecond.
    Sir i read form "help" of labwindows how this time interval can be set,i'm trying for,as described in help notes but i could'nt.I'm attaching a screen shot sir for you it may helpful for you to explain me.
    And sir also waiting for your kind reply regarding word report generation.
    Thanks.
    Imran.
    Attachments:
    screen_shot_rigistry.docx ‏65 KB

  • I have a window asking: do you want to replace the existing Normal.dotm? what should i do? I'm on OSX 10.7.5 with Office 365 14.3.2 for mac 2011.

    I have a window asking: do you want to replace the existing Normal.dotm? what should i do? I'm on OSX 10.7.5 with Office 365 14.3.2 for mac 2011.

    That is not what I said.
    Normal.dotm is a template, not a .doc file. It is the template that every new document is based upon, IF you changed any of the template settings (font size or other attributes) then you will be prompted to save the changes.
    Did you? (or is this an old Windows Template)

  • Make Word default app for .doc files

    How can I make Word the default app for .doc files? I don't want Pages to launch when I clip on a word doc attachment in an email using Entourage.

    I notice you say you're having this problem when you open a document attached to an e-mail within Entourage, correct? If so, this may not be an Apple issue. Check Entourage's settings to see if it has an option that specifies what application opens.
    Also, do these files have an extension? If not, that could be causing problems. If there's also no extension, the Mac could get confused, and it may not have any basis for allowing you to Change All. (Change all what?) I could not duplicate this behavior by e-mailing myself a file with no extension, but if a Windows machine were involved, that might change... or maybe not.

  • Question regarding the default web template for queries

    Hello,
    I am trying to learn the default web template that is using for queries:
    0QUERY_TEMPLATE_BROADCASTING70
    I see that it's <bi:QUERY value="" /> is empty which is logic since the query will be inserted on runtime. My question is, where in the web template does it say that? I can't see any parameter it expects to get with the query's technical name not at the webtemplate code nor at the URL...
    Roy

    Roy,
    I think you are mixing things. The template you are mentioning is used for queries that are executed from the query designer. It's not a web template as any other one you create for your users. So, this web template has some parts in it's code that works with the query execution. When you run a query, the system takes the query definition (made in QD) and executes it with the web template indicated for the query. This determination is made by the program that is used to run queries. You can try using RSRT transaction to debug and check how this it's done. If you want to change the default web template used by query designer to run the queries, you should do it copying any standard template, like the one you mentioned. If you don't do it, you won't get the information correct.
    Hope this helps.
    Regards,
    Diego

Maybe you are looking for

  • Rename Instance

    We copied our 8.0.5 database to a new faster NT machine, but I need to know how to change the instance name on the old production machine so it can be utilized as the new test system. I can't remember if it involves editing the control files, the ini

  • UIWebView remove white background

    Hi everyone: I'm trying to use the UIWebView-derived class to display contents in my view. It works great, except that this UIWebView is displayed on the black background and right when the view loads up the UIWebView flashes the white background for

  • Java Desktop System 3 Crashes

    Hey, got a quick question ... Every time I try and load a session using the Java Desktop, Release 3 ... it crashes on me. And when I say "crashes" I mean, I get to the point where it starts to load the desktop then it freezes. Can't rlogin or telnet

  • After installing ios8 my iCloud setting is stuck in the upgrading mode, and some documents are missing from my pages app.

    After installing the IOS8 on my ipad2, the iCloud drive is stuck in the upgrading mide.  I am also missing some documents that were in my Pages app.  Can anyone help my fix this issue?

  • Ocfs performance

    We have a rac of 3 servers. Currently we have the db running on just one server (rac1) and all works fine with good disk io times. When we start mounting the disks on another server ( rac2 ), things go downhill fast. We notice this performance hit ri