Content Type Word Templates

Dear all,
I have a word template with a header containing the total numbers of pages. It happens that on the first page, the total number of pages would not update. It seams this is a known bug. I found a solution for this which was to use a macro that would force
the update.
It worked fine in my server. The problem was when I deployed to another server (another farm), the header in the first page would again not update.
I have one of two questions: How do you solve the fact that the total number of pages is not updating in the first page without macros, and/or in case of using a macro, how will you make them work as a template in a content type.
Thanks in advance.
Best regards,
GS
Gonçalo

In principle, writing macro's is not related to sharepoint, although I have seen situations where macro's weren't able to cope with web scenarios, causing problems once published in sharepoint. I would advise you to ask this question in a Word macro forum
AND post of the code you're using, it will give you a better chance at finding the solution.
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com

Similar Messages

  • Content Type policy template - labels

    Hello,
     I have create "Content Type policy template" .
     I enable "Labels" policy.
    When I press "Ok" , show the following error :
              "The label reference, ProjectName, could not be found"
       So What is wrong ?   
        Thanks
    ASk

    Hi,
    According to your post, my understanding is that you want to set the Information Management Policy labels.
    The “ProjectName” and “ProjectManager” are two fields of which are used as an example, if there are no such fields in your site, the error will occur.
    You can take other existing fields for a try.
    More information:
    http://office.microsoft.com/en-in/sharepoint-server-help/configure-features-of-an-information-management-policy-HA010132062.aspx
    http://social.technet.microsoft.com/Forums/en-US/67157526-f30f-4b44-97ed-131ba294ab60/how-to-attach-sharepoint-version-to-copied-document?forum=sharepointgenerallegacy
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Multiple Content types only first 11 visible

    We have set up Multiple content types (word templates) for our libraries.
    But only the first eleven content types are shown when we click on new document.
    I have searched the internet but cannot find a solution for this.
    Is there a possibility to show all the content types ?
    possible solution that I was thinking off but I can not seem to configure:
    - changing the max number of content types that sharepoint displays from 11 to an higher value
    - grouping some content types together and split them up this way
    - creating an extra "new document" link with a dropdown with other content types
    - enabling a scrollbar
    The only possibility I see for the moment is to create multiple libraries each of them with a subset of the content types
    but that is not really user friendly then they have to search in multiple libraries instead of 1

    Hi,
    According to your description, my understanding is that it displayed only the first eleven content types after you set up multiple content type in your libraries.
    I have created lots of content types and added them to library and it worked fine.
    Please check the configuration of the content type order in library settings -> Change new button order and default content type, and provide the screen shot about is.
    Please add multiple content types you created to other libraries and other libraries in other site collections and test whether this issue occurs.
    Best Regards,
    Dean Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Hide content type from the new menu but show in edit form

    SharePoint Online, I have following 4 site content types Word Document Excel document PowerPoint document General document
    These content types are being used in a document library and "Word Document" is the default content type, When user clicks on "new" menu, all 4 content types are shown.
    I don't want to show "General document" in the new menu but I want to show in edit form, I have marked it hidden in the library settings but now it is not visible in the edit form.
    Any idea how can I hide content type from the new button but show in edit form?

    Hi,
    Whether you use SharePoint online 2013.
    If we hide the content type in the library settings, the content type will not be displayed in both new menu and edit form.
    To accomplish your qequirement, we need to use css code:
    style <style type="text/css">
    ul.ms-cui-menusection-items32 li:nth-child(4) {
    display: none !important;
    </style>
    perhaps your environment is different with mine, you need to make a little change to the code. 
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have
    feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Custom Property in Microsoft Word 2010 Document Template and Sharepoint 2010 Content Type not Syncing up

    I wrote a macro in a Word 2010 template with a custom property called HeaderFooter (a Yes/No value). When the property is changed to No, the header and footer are hidden, otherwise, the header and footer are displayed.
    I added the template to a SharePoint 2010 Document library, with a content type DocInformation and a column name HeaderFooterOffOn that I want to map to the custom property HeaderFooter in the Word Document.
    The macro isn't working in SharePoint, though, because when the user clicks on the HeaderFooterOffOn in the DIP of the Word Document, the Word Custom Property (HeaderFooter) isn't changing with it.
    How do I get these two synced up, so that when the SharePoint column is changed, the Word Document's custom property simultaneously updates with it?

    Hi kevinkevinc,
    There is no direct way to run macro in SharePoint
    As a workaround, I suggest you use SharePoint Event Receiver to run some custom code when column changed.
    Here is a similiar thread for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/249249e2-3263-4001-86fa-bda342d95f35/run-word-macro-on-newly-uploaded-sharepoint-word-documents?forum=sharepointdevelopmentlegacy
    More information:
    SharePoint Event Receiver:
    http://msdn.microsoft.com/en-us/library/ee231563.aspx
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Updating Word templates in Content Types - changes not appearing automatically

    Hello
    I have a SharePoint site where I have existing content types all with MS Word templates assigned to them.  I wish to change the Word template so it looks different.
    I have saved my Word template as a .dot file and have edited my content type so it points to the updated template in the 'Advanced' area of the content type properties.  When I look at my template via the 'Edit Template' in the 'advanced' area of the
    content type it is fine (as it is when I look at the template file via explorer view) but when I create a new document based on the content type it is referring to the old template.  Furthermore, I have renamed some of the content type names but they
    have not updated either.
    Any ideas?  Is there a background process that runs to help with this?

    Sorry, just re-visited this and i think i might have missed an obvious answer.
    SharePoint tries to protect you from yourself.
    That measn that it will not, in some cases, push changes down to lists. For example if you were to delete a column at the site level which is also in place on lists SharePoint won't delete it from the lists.
    I'll bet that If you look at the content type at the library level it's showing the old details still.

  • MS Word Template in Content Server

    Hi, we have this problem.
    we have a Z transactions asking the user to give some data and save it in a table with key number, the user can attach several documents (.DOC) from local pc and transaction use content server to store these documents and linked it to the data stored in table via the key document. all of this is working fine. we are using  ARCHIVOBJECT_CREATE_FILE and ARCHIV_CONNECTION_INSERT functions to save this file in content server and link the document to the key number.
    now we are trying to make the transaction open a  MS  word template , the user fill the word document and when its done the transaction save it in content server
    some can give some help to do this?
    we are searching a way to :
    1.- store a Ms Word template in SAP
    2.- Open this MS Word template with a button in the  Z transaction.
    3.- Let the user fill the template .
    3.- save the document filled in content server without change the original template and linked to the data with the same key number.
    thanks.

    All catch is to insert table in the correct level of xml schema.
    1. So you first need to insert add elements to the template until you reach the element that you want to use in the table. For example if you want to display items of orders, this level would be Transactionhistoryofheader - Btdocflowall - Item
    2. After that you would insert table with 2 rows and as many columns as you need.
    3. The first row of the table is used for column headers. You can type in freely any text you want to display in column headers.
    4. The second row of the table is for the entries themselves. In the second row you have to add elements from the xml schema that are in the lower part of the element under which you inserted table. For example, under Transactionhistoryofheader - Btdocflowall - Item are then next nodes Btorder - Administrationheaderoneorder - Description. So in this case in first column will be displayed descriptions of all entries.
    5. At runtime rows are added dynamicly depending on actual number of entries.
    Regards.

  • How to Enforce Sharepoint 2013 content type validation rules when modifying document using Word 2013

    Good day,
    I have two date columns (Start Date and End Date) in a content type in Sharepoint 2013.  A file library uses this content type.
    In the document template I have the two dates (Start Date and End Date) showing in the Document Panel.  I can edit them well enough and they show in the document correctly.
    In the content type I have validation rules that the End Date must be greater than the Start Date. 
    The question is, how can I enforce this validation on the client side in Word.  Is there anyway to achieve this?
    The user will not have access to change the document properties in Sharepoint. (Not my call)
    Thank-you!

    The "panel" is called the Document Information Panel in SharePoint. You can customize this using InfoPath from the page where you created / edited your Content Type. Go to Settings, Site Settings Content Types, edit your content type, click Document
    Information Panel and then click "Edit this template". In InfoPath you can create a Rule to enforce your dates.
    This may require the Enterprise Edition of SharePoint to support the InfoPath Forms Services.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Integrating OneNote with Sharepoint 2013 - Custom document template, Change Content type, Checkout settings

    My client is migrating to SharePoint 2013 and the team uses OneNote Task list to track the project checklist. While I am successful extending the document template to support OneNote, still have some mysteries to solve as listed below:
    I am exploring Sharepoint 2013 and have tried to explain my problem clearly. If the information provided below is not clear enoug, let me know.
    1. Client has defined custom content type for all the documents in a library. I noticed OneNote comes with a Content type as "Folder". Is it possible to edit / modify the OneNote metadata to accommodate the predefined content types?
    2. In a library, I would like to defined multiple OneNote templates - Meeting, Task List, etc. I followed this article to create OneNote template for a library. Is is possible to edit the template and have "Meeting template" as default?
    3. A library can have multiple document types - word, excel, presentation, OneNote. In order for OneNote sync to work, below settings are mandatory (correct me if wrong):
            a. Checkout required should be set to "No"
            b. No versioning should be set
    My client's governance rule states "Checkout" is mandatory. How can I have a library to support OneNote with Checkout option enabled.
    Thanks in advance!

    Hi TMUser,
    regarding your questions:
    1. One note is based on folder not content type, so by design it is different items. but i heard you can have a look up for this, you may try to change my onenote notebook folder content type so that it allows for additional metadata columns. this way, the
    onenone notebook can be handled just like other office documents. for more detail you may try from this example: http://www.sharepointcowbell.com/2013/01/onenote-and-metadata-in-sharepointpart.html
    2. for onenote products, you may ask at onenote forum for more detail, http://support.microsoft.com/ask-community/office/onenote-2013/,
    we can help for general discussion regarding this. you may take a look at this article, it mentioned about set template as default: http://blogs.msdn.com/b/onenotetips/archive/2008/05/21/templates-in-onenote.aspx
    3. for this question, you may check this kb, http://support.microsoft.com/kb/2675731/en-us, i
    think it is by design, because onenote and other office are different, onenote is use shared, if we put checked out, then it will be set the limitation to only exclusive user.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Sharepoint 2013 (Danish): Deploying site from a custom template fails with error "Duplicate content type"

    I cannot create a site-template in my own language (danish) and deploy a site based on the template.
    I created a template from a "fresh" SharePoint project site with no tampering.
    When trying to deploy a new site based on the templat I get the following error:
    In Danish:
    Beklager, men noget gik galt
    Det blev fundet et navn på en dubletindholdstype "billede".
    Tekniske oplysninger
    Fejlfinding af problemer med Microsoft SharePoint Foundation.
    Korrelations-id: 96646c9c-3213-a088-c6c4-537b0815313c
    Dato og klokkeslæt: 21-06-2014 10:23:36
    In English:
    Sorry, something went wrong
    A duplicate content type name "billede" was found.
    Technical Details
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: 0b656c9c-52ee-a088-c6c4-5132070e3c4e
    Date and Time: 21-06-2014 10:31:35

    Need details from ULS logs about Correlation ID: 0b656c9c-52ee-a088-c6c4-5132070e3c4e
    Check below:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/e955e737-e12e-4afa-b446-bb6e0f05e9b1/duplicated-content-type-error-creating-a-sharepoint-2010-site-from-a-custom-site-template?forum=sharepointgeneralprevious
    http://aramacciotti.wordpress.com/2012/04/04/the-case-of-the-duplicated-contenttype/
    http://community.office365.com/en-us/f/154/t/69416.aspx
    If this helped you resolve your issue, please mark it Answered

  • How to use custom aspx page as template for custom content type

    Hi,
    I have created custom content type and custom aspx page. I want to use aspx page as template for custom content type.
    Can anybody please let me know how to accomplish this?
    Any help would be appreciated.
    Thank you,
    AA.

    Check if you are looking for the below
    http://www.sharepointpals.com/post/How-to-Create-a-Page-Layout-(PageLayout)-with-ContentType-in-SharePoint-2013
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Update content type template for existing sites in sharepoint 2010 ?

    Hi,
    I created one custom document library (list definition) and associated 3 content types which has docment template path (\_layouts.template1.docx). I rollout nearly 200 sites with this definition. now i want to update my document template and also i want
    to change template docx to dotx.
    what is the best approach to apply these changes for existing sites ?
    Thanks,
    Surya.
    suryakumarp

    Hi suryakumar,
    As I understand, you want to update the template 
    for existed content type.
    It can be achieved by programming. There is a
    SPContentType.DocumentTemplateUrl Property, which can be used to update content type.
    Here is a demo:
    http://officepoint.blogspot.com/2008/06/sharepoint-relink-infopath-forms-relink.html

  • New Content Type with RDL template

    I'm building a new Project Server 2010 site template and one of the libraries that I want to provide will store the Status Reports for each Project.
    I'm struggling with what seems like a simple concept.
    Create a new Content Type that uses the status_report.RDL as it's template so that users can click on the 'New Document' button drop down in the ribbon and select 'Status Report' from a list of possible document templates and then the status report opens, they
    add the required parameters, run the report and then 'Export' it as an Excel Sheet which they can store in the library as a point in time report of the projects status.
    Am I asking too much or do I just need to decypher the way that SharePoint builds the URL for the report from the actual .RDL file that's stored in a library in order to enter it as the location of the content type template?
    Thanks in advance.
    N03L.

    I should add that I'm planning on having this content type stored in a Content Type Hub and published for use in another Site Collection.

  • Programatically export each Document Template referred to by the Content Type Configuration to a folder

    Hi there
    Help appreciated in "storing each document template referred to by the Content Type configuration to a folder programmatically".
    Regards,

    Hi,
    Okey, the following two articles for you to take a look at:
    Download All Folder and Files in Document Library (Sharepint Object Model)
    http://mykiavash.wordpress.com/2011/04/24/download-all-folder-and-files-in-document-library-sharepint-object-model/
    Download files as Zip File in SharePoint
    http://adicodes.com/download-files-as-zip-file-in-sharepoint/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Having templates appear when users click the "New Document" button in a document library with custom content types

    Hi all,
    I'm using SharePoint Online, but I'm seeing the same behavior in an on-prem 2013 instance as well. My situation is this:
    - I've created a document library
    - I've created a custom content type and attached a custom document template to it
    - I've assigned the custom content type to the document library, and disabled the default "document" option
    What I'm expecting to see is that when I browse to the document library and click "new document", that either a) a picklist appears allowing me to specify the document template I want (using the custom template I specified) or b) open the custom
    template itself. That doesn't happen - instead, when I click new document I'm prompted to upload a file, which seems to contradict the whole point of using a custom content type/custom document template combo.
    Am I missing something? The custom template isn't in the Forms library, which seems to be a problem if I wanted to use the custom document template instead of the default.
    Ideally I'd like a menu like the one shown here:
    http://social.msdn.microsoft.com/Forums/en-US/59ce3bd8-bf7f-4872-ae76-60d8c81dfc32/display-content-types-on-new-document-button-in-document-libraries?forum=sharepointgeneral, except with me being able to control the list of items that is shown.
    Any ideas? Thanks!

    Hi Brain,
    What you have done is by design behavior.
    If you want to show the Office document templates list (e.g. below image from your above referenced link) to select when click "+new document" link, this will need to install Office Web App 2013 which provides this feature,
    you can new document and see it is using WopiFrame.aspx page, please see more from below article about how to configure OWA 2013 for SharePoint 2013 on-premise.
    http://technet.microsoft.com/en-us/library/ff431687(v=office.15).aspx
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

Maybe you are looking for

  • How to assess future volume in XI ?

    Hi, I'm planning to install XI.  I'm looking for methodology, tips & hints to calculate the future volume of data exchanged through XI.  I know exactly what I will exchange (data from and to SAP ERP).  Is there any available info about average size o

  • Cant find password on ipod touch

    How to get my password

  • Large files created in TEMP folder

    Hello, one of our servers reported low disk space and we discovered, that its caused by huge files created in temp folder. These file names are like C:\Windows\Temp\TMP00000A78405B314E573DA1A0 Process monitor reported, that theyre created by FEP (msm

  • Setup table in LO Cockpit

    hi i have a very silly doubt, which is a correct statement about setup tables: 1>setup tables are cluster tables, we can't see the data in the setup tables 2>data in setup table can be checked using SE11 can anyone please explain me significance of b

  • Toshiba 32TL838: video flickering after fw upgrade in menus, using HDMI input

    Hi, yesterday I upgraded my 32TL838's firmware to version 6.4.0Y.1 / 94.6.27.8 using the network upgrade feature. After the upgrade I reset the TV to start over with factory settings. During the quick setup after the reset I noticed a very poor video