.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How do I pre-populate document quick parts based on site metadata?

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :SharePoint

Anyone have any thoughts on how I would populate data into document quick parts?

The answer seems pretty simple with content types and such, but the complication is that I want to pull in contact information from a list local to the site in which the library resides.  For example:


A project site is created.  The company's contact information is copied down to the site via the site creation process.  A Letter Standard content type is managed throughout the site, and pulls the contact information from the list and populates the appropriate pieces within the document automatically.

Anyone done something similar to this?

View Complete Post

More Related Resource Links

Is it possible move documents based on managed metadata to Document sets

I would like to all documents who have managed metadata "personnel" to the Document Set "HR". Is this possible with workflow?Kenny_I

Added Metadata (Taxonomy) to Document Type at Top Level Site Collection; How to break inheritance at


We're really loving the ease with which we can add site columns to content types, and have them propagate through all lower-level sites. This is awesome, especially when combined with taxonomy in the term store!

However, our Intranet is to feature a publishing site with subsites to house inter and intra-departmental, private working groups who develop material outside of the public Taxonomy term store and outside of traditional requirements for taxonomy data. This covers a specific area of navigation; the RED HIGHLIGHTED navigation and sub-navigation (not pictured) should all exist without the taxonomy column requirement required of all other sites and subsites.

Example: http://ctnation.citizenschools.net/DotNetNuke/images/WOW_Sample.jpg 

In building the site template for the Workspaces sites, I want to remove all requirements for all content types for the public-site-wide-taxonomy. However, when I edit the content types at the sub-site level, there seems to be no ability to break inheritance from the parent information, and thus, all content types require the taxonomy column (as defined at the root-site level). 

Given the need to remove the site column from all content types, libraries and lists in this Work

Document set with default documents that use quick parts

Is it possible to have default documents that use quick parts?   If so how?  If not, how do I populate document properties when the set is created?

Document Set, shared columns, Word Documents and quick parts


I have a document set with shared columns docset1, sharedcol1, sharedcol2.  My document set is made up of another content type (subdoctype1) that does not have sharedcol1, and sharedcol2, but they are shared via the doc set.

How do I add sharedcol1 and sharedcol2 to quick parts in the word doc?

If I create a document in the set of subdoctype1 and go to insert->quick part->Document Property I do not see the shared columns.  If I save the document and re-open it I do see the shared columns.  How can I add the shared columns to a template with no values?  It seem like I need an actual instance of the doc set with my sub-document type to exist before I can use it.

Using Quick Parts with document libary, template loses field association when moved

Using Quick Parts with document libary, losing association with columns
Hi, I hope someone can help.  Sorry for length
Office Sharepoint 2007 version with Office 2007

The Situation:
We have a workflow which is used to progress a set of Change Control procedures. This utalises a task list, where as each task is complete, the workflow writes the values gathered from the task forms into a word document.  We have a content type associated with a task list with a corresponding content type created on the document library list to hold the values that users enter.  We also use a word 2007 template which has quick parts added to it and its these quick parts that get populated with the user data as the workflow progresses.  So we can populate a customer change request form for users.  This is all deployed using a feature.

The problem:
In our test environment this works fine.  As the workflow progresses the document library columns get updated with the task list columns data, as expected, which in turn means the word document gets updated with the correct values.  All good!!
However, when we move the whole solution onto out live environment, (we do this using visual studio to package all code and depl

Populate metadata on document upload?


Hi all

I need to automatically populate metadata on document upload in a SharePoint Document Library.

The data I have stored in an external list.

Any ideas or samples on how I can acheive that?


Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

"Oslo" Basics: Build Metadata-Based Applications With The "Oslo" Platform


We introduce you to "Oslo" and demonstrate how MSchema and MGraph enable you to build metadata-driven apps. We'll define types and values in "M" and deploy them to the repository.

Chris Sells

MSDN Magazine February 2009

Office Development: Manage Metadata with Document Information Panels


Here the author uses Document Information Panels in the Microsoft 2007 Office system to manipulate metadata from Office docs for better discovery and management.

Ashish Ghoda

MSDN Magazine April 2008

Portals: Unleash Your Site's Potential with Web Parts and Personalization in ASP.NET 2.0


ASP.NET 2.0 has addressed some of the most common problems developers face today with a suite of controls, components and IDE tools. One such issuer is maintaining preferences information about individual users of a Web application in a uniform manner. This article drills down into ASP.NET 2.0 to illustrate how it helps solve these problems far easier than is possible today, and demonstrates how these features can be combined to build powerful, personalized Websites in very little time.

Steven A. Smith

MSDN Magazine June 2004

Go Global: Designing Your ASP-based Web Site to Support Globalization


If you have a Web site for your business, you already have an international presence. But how can you make sure users in any country can access your site effectively? The Trigeminal Software site at http://www.trigeminal.com has pages localized into up to 48 languages and allows users to see pages in the language of their choice. This article describes how the site was implemented and how issues such as whether the site should use frames and what character set to choose for multibyte languages were dealt with. Which database to use for storing dynamic content, whether to use static or dynamic pages, and how to implement localized solutions on both Windows NT 4.0 and Windows 2000 is also discussed.

Michael Kaplan

MSDN Magazine July 2000

Trying to get Roles to populate a checkboxlist based on tutorial and having issues.


I have been using the following tutorial and had to convert the code to C# for my project, now i cant get the code to work, im getting red line under the word "in" in the UpdateRolesFromList,
i tried to add a datasource on page load for the checkboxlist like so RoleList.DataSource = PopulateRoleList(User.Identity.Name.ToString());

and gives me error saying cannot implictly convert type 'void' to 'object'


What am i missing, that when i load the page or even do a search it never displays the checkbox list as it shows in the tutorial?

        protected void Page_Load(object sender, EventArgs e)

        public void PopulateRoleList(string userName)
            string[] roleNames = null;
            string roleName = null;
            roleNames = Roles.GetAllRoles();
            foreach (string roleName_loopVariable in roleNames)
                roleName = r

How can I prioritise search results to show where document metadata has a hit first and then where t


When my users run a search against a site with a bunch of document libraries they will often search for terms that are in the title of the doc, if they do know the title they will put that in. What I would like to do is have the results ordered such that if any hits are on the document metadata (eg Title) then they are presented first and any results that are from hits on the content of the documents are presented later.

So, if they get the title spot on in their search query that document will appear first .... if they don't get it right then the likelyhood is that the title is something like what they entered so similar titled docs are presented first and then those with matching content ....

How can I achieve this?


Search does not find text in Word document stored in document library on a Report Center site within



We have a document library on a site created off of the Report Center site template. We uploaded a Word 2007 document with the word zebra in the text. Using the search bar at the top of the page we selected This list: Our document library and searched for zebra. We received no results.

We tested the same thing on another site (site template Team site) within the same site collection and search worked fine.

Does the Report Center search function differently then the search functionality on the Team site?

Tamara Bredemus SharePoint Minion...working up to Maven

Error adding a document library to a site



I am receiving the error "Cannot complete this action.  Please try again"  when trying to add a document library to one of the sites.  This is Sharepoint 2007 SP1.  I seem to be able to do it thru designer but not the web interface.

Does anyone know how to fix this?

Quick Note: Create Visual Web Parts by Using SharePoint 2010 Controls

In this exercise, you create a SharePoint 2010 visual Web Part in Visual Studio 2010 and then add a SharePoint ListViewByQuery control, a ASP.NET Label control, and a SharePoint DateTime control to it.

Quick Note: Using SharePoint Designer 2010 to Work with Web Parts

Learn to create an XSLT List View Web Part within SharePoint Designer 2010 that displays a list of employees on the Home page of local web site.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend