![]() ![]() Open the Data Sources window and create a data source from a database. Open a Word document-level project in Visual Studio, with the document open in the designer. Add a control to a document at design time To populate a document with data from a database For an example of how to add data-bound controls in VSTO Add-in projects at run time, see Walkthrough: Simple data binding in VSTO Add-in project.įor a related video demonstration, see Bind data to Word 2007 content controls Using Visual Studio Tools for the Office system (3.0). The following example shows how to add data-bound controls in document-level projects using a designer. ![]() ![]() For more information, see Features available by Office application and project type. For more information, see Host items and host controls overview.Īpplies to: The information in this topic applies to document-level projects for Word. Host controls are native objects in Microsoft Office Word that have been enhanced with events and data binding capability. In addition, you can display data by using host controls. You use the same tools and code to bring the data from a database into your solution, and you can use Windows Forms controls to display the data. You can access data in document-level projects for Microsoft Office in the same way that you access data in Windows Forms projects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |