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

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

SharePoint and Open XML: Generating Documents from SharePoint Using Open XML Content Controls

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

This article describes how to generate documents that contain data stored in SharePoint lists. The example demonstrates how OpenXML content controls can be defined to capture list data in a Word document and how LINQ to XML can be used to query the lists. The documents are generated from a SharePoint Web Part.

Eric White

MSDN Magazine October 2009

View Complete Post

More Related Resource Links

Office 2010 will not open Office 2003 Documents on SharePoint

Going directly to a document in the document view and selecting any of them will present the Read Only/Edit prompt and when clicking Read Only Word or Excel 2010 depending on the document type will open to a blank page and just sit there. If you do a search and then click on the documents that are returned in the search results, it opens as expected.

how to open force SharePoint 2010 to open documents withint the browser instead of invoking word app

guys, when user clicks on the word document within a document library, it opens up in the word IDE , how can i change this so that documents opens up in the browser. the "Library settings\ advanced settings\ open documents in the browser" setting is set to "open in the browser"   thanks sameer

Can't open SharePoint documents in Office 2010

Hi, I have a SharePoint 2010 standalone installation and a SP 2007 with SQL back-end installation for testing and proof of concept demonstrations.  All the servers are running Windows 2008 Server and are on a vSphere 4.0 ESX server as virtual machines. Most of the pilot team are on Office 2007 and are working fine with the installations.  I am running Office 2010 (not beta) and am unable to open any Word or Powerpoint files in a standard Project site's Shared Documents library. (I can open a word document stored and linked from a publishing site.) Whether I browse to the file or click the link in a search results page, Powerpoint and Word load up but before I get any login prompt or application screen appearing, the application crashes.  This occurs whether I open the document Read only or click the implicit check out 'Edit' button. If I check the document out to my local drafts folder I can open normally.  As I can't find anything about this on the internet I'm guessing it's not a common occurence!

Word 2007 documents won't open from Sharepoint Services site

I have a Sharepoint Services 3.0 site that contains shared documents, Word, Excel, PDF, etc.  I cannot open Word documents directly from the shared documents portal.  Other file types like Excel adn PDF open fine.  It's only Word that has the issue.  I'm using Word 2007 and it doesn't matter if it is a .docx or a .doc, both act the same.  Word tries tro open, then just sits there....no error message or anything.  Any help would be greatly appreciated!

Sometimes sharepoint documents won't open until i close all word documents



I'm running into an issue with our sharepoint setup, and for some reason i'm the only one in the company having this issue.

When opening word documents from sharepoint every now and then (not everytime) my computer gives word focus, but the requested document doesn't load. I have to close the all word documents, click the document link again in sharepoint and then the sharepoint document opens.

When this happens I can still open local documents and sometimes I can have 5 sharepoint documents open but other times i can only have 2 or 1 document open. Even when working with the same documents.

I am completely lost as to where to start looking (Tried google, didn't find anything) but 

- it's not reproducable, it happens often but not when you try to trigger it
- it doesn't happen with the same file all the time
- it doesn't happen after the same number of files every time
- it only happens to me.
- word can still open local files when it happens

The setup is:
- sharepoint 2007
- windows 7
- office 2010

So I am somehow inclined to think it's a client issue as i'm the only one having it (all laptops were initially installed using the same image) but then again it's only happening with sharepoint documents.

If anybody could help me or point me in a general direct

Cannot open Word document from sharepoint Shared Documents folder


Hey Every body

I have a very strange problem. Our Company has a Microsoft Office Sharepoint Server 2007 solution running as our company Intranet solution. 

We have a solution where outside users, can gain access to a workspace site on Sharepoint where diffrent people can work together on projects that involves both out side users and internal staff. 
We have a folder called shares documents here we can upload documents that we want the other memebers off this workspace too see.
The problem is that internal staff can open up Word documents directly, but the external users are not able to open up directly these Word documents. Word just sayes that that is is unabel to open up the word document.
But when the users download the documents instead it works fine.

I have tries with both offcie 2003 and office 2007 and the problem is the same. But if i try to open up these documens via Open Office the problem due not exits, then is works fine. Why does Microsoft Word have these problems?

And is it just when the external users are opening up the documents directly from the sahred Documens folder that we have this problem.

The external users are connecting to our Citrix Netscaller security solution for authenticating purpoes first, after they have been validated through this solution, they ar

All documents open as Read Only in Office 2010 from SharePoint 2007


I have recently installed Office 2010 and now when I select "Edit in Microsoft Word" from a SharePoint document library, the document will only open as Read Only.  I am running SharePoint 2007 SP1, I have admin rights to the workstation, server, sharepoint list and document.

I have tried the registry entry " OpenDocumentsReadWriteWhileBrowsing = 1 " but that has made no difference.  I have also run webfldrs.msi with no effect.  The website is a trusted site and I have switched off all of the protected view options.

Any help welcome!

Sample: Processing Documents in Bulk Using SharePoint 2010 and Open XML 2.0

Explore code that uses the Open XML SDK 2.0, SharePoint 2010, Word Automation Services, and .NET Framework code to process documents in bulk.

Processing Documents in Bulk Using SharePoint 2010 and Open XML 2.0

Learn to use the Open XML SDK 2.0 to generate specific documents, SharePoint 2010 to store those documents, Word Automation Services to convert them to XPS files to print, and .NET Framework code to send them to the printer.

Can I open the "new" menu in a SharePoint Document Library using Dragon NaturallySpeaking?


When a user, who uses Dragon NaturallySpeaking, says "new" when viewing a Document Library the default content type is selected and the associated application (e.g. Microsoft Word) is launched. This scenario is okay for Content Type selection since the Microsoft Office applications will prompt for the metadata once the file is saved.

If the user needs to create new folders in the Document Library however they need to expand the "new" dropdown menu.

What is the best way for someone using Dragon NaturallySpeaking to expand the "new" menu for a Document Library in SharePoint?

Assembling Documents on SharePoint 2010 Sites by Merging Content from Excel, PowerPoint, and Word

This article describes a rich document assembly solution that takes Word 2010 documents, Excel 2010 documents, and PowerPoint 2010 documents and merges them together to form a final report in Word. It does all of this from a SharePoint 2010 Web Part.

Using the SharePoint Foundation 2010 Managed Client Object Model with the Open XML SDK 2.0

Write client-side applications that work with Open XML documents that are stored in document libraries by using these two technologies together.

Open Analytic Chart on New Page In Sharepoint


We have designed a Dashboard with single page

1. A Scorecard --Zone 1

2. Analytic Charts --Zone 2

When a person clicks on any of the KPI on Scorecard corrosponding Chart for that particular KPI is displayed in Zone 2.


So far So good

Now our client has come up with a requirement that

whenever he clicks a KPI the chart should open in a new browser window instead of Zone 2.

Is this possible in Performancepoint 2007 or Sharepoint 2007 if yes then how to accomplish this

Sharepoint 2010 Enterprise - Word can not open file in sharepoint

Hi, In the library shared documents on my first teamsite i uploaded a word 2010 document. When i click on the document my Word starts up but i'm not able to open the document. i'm also getting the following error: could not open http://pcp/Shared Documents/cv.docx. When i upload a document via word (saving the document in the library via word) i can view it when i click on the document. But when i upload an existing document into the library i keep getting the error from above when i'm trying to open it.   Thanks TIM

Email (*. msg) open directly in SharePoint?

Hi, I have the following problem. In SharePoint are different types of files stored (*. docx, *. zip, ...). For all types of files automatically open the programs (Word 2010, 7-Zip). And now the problem. Mails in SharePoint (*. msg) will not open in Outlook. It can only download the file. Is there a possibility that the files are open *. msg directly in your mail program.

Powerpoint ppsx files open as read only in sharepoint with not option to edit

With Powerpoint 20007 in sharepoint(MOSS 2007) the PPSX files are opening in read only mode with no option to edit to be found. 2nd issue is ppsx files do not open on any persons computer as a show.  Is it possible to change this? How do I change this so I can edit the slides? Current "bad" solution is to save to local drive than upload them over the location  on sharepoint. This post was redirected by moderator from: http://social.answers.microsoft.com/Forums/en-US/pptshare/thread/9674b463-2195-4bbd-a2e7-526b8cfa4491

SharePoint Designer can't open defaul.aspx page

I tried to edit the default.aspx page of a WSS 3.0 site using SharePoint Designer and I get the following error:"The server could not complete your request.  Contact your Internet service provider or Web server administrator to make sure that the server has the FrontPage Server Extensions or SharePoint Service installed."When I click on the 'Details' button I get:"soaperverServer was unable to process request. ---> A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered as safe on this site. You may not be able to open this page in an HTML editor that is compatible with Microsoft Windows SharePoint Services, such as Microsoft Office SharePoint Designer. To fix this page, contact the site administrator to have the Web Part or Web Form Control configured as safe. "I don't have any custom built Web Parts installed and I checked the web.config file to make sure that other parts are marked as safe.The weird thing is that I can successfully edit other default.aspx files on sub-sites  Thanks for any help
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