From the Source Force to you…
This is pretty cool. If you are interested in testing and playing around with the new 2007 Microsoft Office system client apps or Microsoft Office SharePoint Server 2007 without dealing with setup and installation, you might be interested in trying out the new 2007 Office System Virtual Labs.
These are the latest ones…
I already played around with the last one and it’s pretty neat. You get to work with a virtual machine and you can also download a lab manual with code that you can reuse later :). You can subscribe to the RSS feed or checkout the MSDN Virtual Labs page to see the latest ones.
Enjoy,-Erika
If you are into technology, you are mostly going to find documentation in English. However, if you speak another language, it’s always useful to find documentation in your own language. I am from Mexico and I am always pleased to find technical documentation in Spanish.
Here is a list of international resources related to Office development that you might enjoy reading…
Parlez-vous Français?…
Office system 2007, c'est bien sûr une avalanche d'innovations, dont une nouvelle interface utilisateur qui facilite la découverte des fonctionnalités. Mais Office system 2007, c'est aussi une plateforme de collaboration et de gestion de contenus, avec laquelle vos applications métiers peuvent interagir.
MSDN: Centre de développement Office et XMLhttp://www.microsoft.com/france/msdn/office/default.mspx
Blogs:
Non parlo italiano, ma potreste
2007 Microsoft Office system è una soluzione avanzata che comprende applicazioni client e server, servizi e strumenti. Costruita sul formato XML e su una serie di tecnologie estendibili, ti consente facilmente di sviluppare applicazioni, dal business content management alla business intelligence, fino al project management e alla collaborazione in tempo reale.
MSDN: Developer Center Microsoft Officehttp://www.microsoft.com/italy/msdn/risorsemsdn/office/default.mspx
Community italiane
Sprechen Sie Deutsch?
Microsoft Office in der Version 2007 bringt einige revolutionäre Neuerungen, z.B. in der Benutzeroberfläche - aber auch in der Art und Weise, wie Entwickler eigene Anwendungen unter dem Dach des weit verbreiteten Office Systems spielen lassen und dabei auf eine reichhaltige Fülle von Funktionen und Funktionalität zurückgreifen können.
MSDN: Developer Center - Office Developmenthttp://www.microsoft.com/germany/msdn/office/default.mspx
Entwickler Communities:
Japanese
を利用した開発に慣れていない方には、このスクリーンキャストシリーズをお勧めします。Office 開発者 スクリーンキャスト バーチャル ツアーでは 2007 Microsoft Office System を利用した開発を始めるのに必要な学習教材を提供します。
MSDN:http://www.microsoft.com/japan/msdn/office/
Office Online:http://office.microsoft.com/ja-jp/default.aspx
Viva el Español!
Microsoft Office System es una visión tecnológica que esta conformada por un conjunto de elementos totalmente integrados como: Programas, Servidores, Soluciones y Servicios, que permiten a los desarrolladores construír soluciones de negocios para conectar a la organización y a las personas con la información y los procesos de negocios rápida y fácilmente sobre una plataforma familiar.
Acabo de darme el gusto de escribir algo en español en mi blog. Con todo gusto para la gente que habla español, ahí les van unas ligas que les pueden ser de utilidad:
Artículos interesantes sobre desarrollo con Office: http://www.microsoft.com/spanish/msdn/articulos/architectema/tema/prog_off.mspx
MSDNhttp://www.microsoft.com/spanish/msdn/centro_recursos/office/default.mspx
Comunidad Office System
http://groups.msn.com/comunidadofficesystem/desarrollo1.msnw
Office Onlinehttp://office.microsoft.com/es-es/default.aspx
Por favor lean este artículo de Luis acerca de colaboración con SharePoint:http://sharepointmx.mvps.org/blogs/ldusolier/archive/2006/06/20/23.aspx
Other worldwide resources:
You can find more worldwide sites and international DLs here:
International Discussion Groups:http://www.microsoft.com/communities/newsgroups/en-us/default.aspx
MSDN Worldwide Sitehttp://msdn2.microsoft.com/en-us/worldwide/default.aspx
Office Online Worldwide sites:http://office.microsoft.com/en-us/worldwide.aspx
I am planning to update this blog entry on a regular basis once I learn more about other resources. If you know about good international Office developer blogs and Web sites, please let me know and I will be glad to trackback.
I have to say it, I had a lot of fun writing this blog entry :).
Enjoy!~Erika
So you are looking for a component/technology/solution to help you generate Office files (documents, workbooks, and presentations) using a server-side application, and of course, using managed code.
I can tell you that this need has been brought to my attention at some conferences, questions in DLs, customer feedback, and as a common customer requirement when I was working as a consultant. You know that using automation and interop is definitely not an option. However, the Office XML File Formats are a great option.
You can build a server-side application using Visual Studio to generate data-rich documents using the Office XML File Formats and the .NET Framework 3.0 (aka Microsoft WinFX ). Here's how...
In my previous blog entry I demonstrated how to build and Word 2007 template and connect an item in the data store. You built a customer letter document template with content controls that map to an XML file. In this blog entry, I will show you how to create a server-side data-driven document generation application that will allow you to select a company name to generate a custom letter. The application will retrieve customer data from a SQL Server database and use the customer letter document template to build a new document that displays customer data based on a user selection. The document will display the following information:
To create a server-side application that pulls data from a SQL Server database and generates a new Word 2007 document
You can create a Web-based application that enables users to select a company name and generate a custom letter. The Web-based application retrieves customer data from a Microsoft SQL Server database, opens the customer letter document template, and creates a new document that displays customer data based on a user selection. This application does not require the use of Word 2007 or VBA. You can use your favorite managed code (Microsoft Visual Basic .NET or C#) language to build this application. To build this application, do the following:
The following sample shows how to bind to a Microsoft SQL Server database to retrieve data based on a customer selection and create a new document based on the CustomerLetterTemplate.docx.
[VB.NET]
[C#]
Learn how to manipulate Microsoft Office system documents using the Microsoft Office Open XML Formats without the 2007 release. Work through scenarios involving programmatically manipulating documents using the Microsoft Office Open XML Formats.
Last week I had a chance to write some interesting code samples. I missed coding a lot, and I felt a little rusty after working in different projects. But I had a lot of fun and I want to share with you one of the samples I wrote: A simple ASP.NET 2.0 solution that retrieves data from SQL Server and generates a Word 2007 document using the Office XML File formats, WinFX, and XML Mappings in Word 2007.
One of the most common requirements for applications that work with data is "data-driven document generation." No matter what the data source is -could be an Access database, SQL database, Web service, SharePoint list, Excel spreadsheet, XML file, Word document, or multiple sources. The typical "export data and create Word documents" feature is a common need.
How to do it? Two simple steps:
Word 2007 allows you to build data-driven document generation solutions. You can create a document template with a custom XML part and use Content Controls to bind to custom XML data using XML Mapping. Next, you can create a managed application to build a new document based on the template. The managed application will open the document template, retrieve data from a SQL Server database to build a new custom XML part, replace the template’s custom XML part , and save it as a new document.
This little sample will show you how to build a document template from scratch and create a server-side application that generates documents that display data stored in a SQL Server database. How did I learn to do this, well, believe it or not, I watched the following Office Dev Con session:
CD305—Word 2007 XML Programmability: Data/View Separation and Rich Eventing for Custom XML Solutions
Presenter: Tristan Davis; 59 minutes (180 MB) In this session, we introduce new XML capabilities, then dive into the functionality of the Office XML data store and how it can be leveraged to build solutions that will strongly tie Word documents to your business processes.
..and then asked Tristan Davis some questions related with XML Mapping.
Business Scenario: Custom Customer Letter
To demonstrate how to build and Word 2007 template and connect an item in the data store to a SQL Server database, you will first build a customer letter document template with content controls that map to an XML file. Next, you will create a server-side data-driven document generation application that will allow you to select a company name to generate a custom letter. The application will retrieve customer data from a SQL Server database and use the customer letter document template to build a new document that displays customer data based on a user selection. The document will display the following information:
To create a Word template and define the XML Mappings for each content control.
Use the following steps to create a Microsoft Office Word 2007 template.
1. Open Word 2007.
2. Create a document.
3. Create content controls to bind to a node in the data store.
What are content controls? Content controls are predefined pieces of content. There are several types of content controls, including text blocks, drop-down menus, combo boxes, calendar controls, and pictures. You can map these content controls to an element in an XML file. Using XPath expressions, you can programmatically map content in an XML file to a content control. This enables you to write a simple and short application to manipulate and modify data in a document.
4. Set the XML mapping on the content control.
XML mapping is a feature of Word 2007 that enables you to create a link between a document and an XML file. This creates true data/view separation between the document formatting and the custom XML data. To load a custom XML part, you must first add a new data store to a Document object by using the Add method of the CustomXMLParts collection. This appends a new, empty data store to the document. Because it is empty, you cannot use it yet. Next, you must load a custom XML part from an XML file into the data store, by calling the Load method of the CustomXMLPart object, using a valid path to an XML file as the parameter.
XML mapping is a feature of Word 2007 that enables you to create a link between a document and an XML file. This creates true data/view separation between the document formatting and the custom XML data.
To load a custom XML part, you must first add a new data store to a Document object by using the Add method of the CustomXMLParts collection. This appends a new, empty data store to the document. Because it is empty, you cannot use it yet. Next, you must load a custom XML part from an XML file into the data store, by calling the Load method of the CustomXMLPart object, using a valid path to an XML file as the parameter.
5. Add four plain text content controls in the following order.
6. Save the template document as C:\CustomerLetterTemplate.docx.
To set an XML mapping on a content control
Note In this procedure, you map the content control to a sample custom XML file. You will create a valid custom XML file, save it to your hard drive, and add a data store to the document that contains the information to which you want to map.
1. Create a text file and save it as c:\CustomerData.xml.
2. Paste the following into the text file and save it:
3. Now, map each content control to bind to the <CompanyName>, <ContactName>, <ContactTitle>, and <Phone> and nodes of the previous custom XML part.
4. Open the Visual Basic editor and run the following VBA code to add a data store to your template document.
This sample code demonstrates how to attach an XML file to a document, so that it becomes an available data store item.
To create an XML mapping, you use an XPath expression to the node in the custom XML data part to which you want to map a content control. After you add a data store to your document (and the data store points to a valid XML file), you are ready to map one of its nodes to a content control. To do this, pass a String containing a valid XPath to a ContentControl object by using the SetMapping method of the XMLMapping object (via the XMLMapping property of the ContentControl object).
5. Open the Visual Basic editor and run the following VBA code to bind content controls to items in the data store.
You have your template file and you are ready to start your document generation application. I love ASP.NET and I created a server-side application to show you how to generate documents on the server using the Office XML File Formats. You can build a document generation application using Win Forms, a console application, a shared Add-in or your preferred application depending of your business needs.
If you want to learn more about Word 2007 and document templates, read this article:
http://msdn2.microsoft.com/en-us/library/ms406053.aspx
This blog entry is too long already, so I will split it here and leave you with the intrigue of what part 2 will bring. Stay connected and you will soon know the happy ending for this walkthrough.
Enjoy,
-Erika