The objective of this process is to open a Word template within Visual Studio. While this demo is in C#, you can also use Visual Basic. This template will allow your users to customize the Word template by selecting the content of predefined areas, based on the data in the database. In this lab, you use the drag and drop functionality to add controls to a Word 2007 template and add simple data binding to a local database.įirst, you will create a solution that includes a Visual Studio Tools for Office (VSTO) project. Create a document with controls bound to a database Most of this article is about how to drag and drop the controls and how a few lines of code will build a powerful application in Word. While this lab uses C#, you can adapt this lab to Visual Basic. You can use the database provided in the code or build your own. But you can connect the Word Content Controls to SQL Server or to data objects or Web Services. This article assumes you have a database in Access. This demo will also work on Windows Server 2003 and Windows Server 2008 with minor changes in how you start Visual Studio. But Word Content Controls are a feature of Microsoft Office 2007. You can use other versions of Visual Studio with Visual Studio Tools for Office installed. This demo assumes you have the following installed: Next, you will customize the Ribbon with buttons to view the data. First, you will bind controls in a Word document to a data source. But how do you bring the data from your line of business (LOB) application into Word? In this lab, you will walk through the steps to bring data into a Word document and provide a Fluent Ribbon user interface to browse that data. Because nearly every worker uses Microsoft Office, your users are already familiar with the user interface. Office Business Applications (OBA) can be a powerful way to surface data for your users.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |