Microsoft Office Tutorials and References
In Depth Information
Data binding to host controls
// Insert the selected date to the content
this.Content.InsertParagraphAfter();
// Insert the date after converted to string
this.Content.InsertAfter(this.ManagedActiveXCtrl.
axCalendar1.Value.ToString());
}
9.
We have successfully implemented a simple ActiveX control in the Word
2007 document solution through programming. Now, run the solution to see
the result. It will be similar to the following image. Note that date is added in
the current system date-time format.
Data binding to host controls
controls
In VSTO 3.0, data binding to the host controls is one of the features that improves
Office 2007 programming. The new Visual Studio 2008 GUI data tools allow you to
bind data from an SQL Server database to host controls and Windows form controls
within your Visual Studio Tools for Office document.
host controls
Displaying XML data in XML Node host controls within a Word document is made
easy with the new Visual Studio environment—by connecting to data sources using
the data sources window or data access objects. First, let's have an architectural
overview of Office 2007 data access objects.
 
Search JabSto ::




Custom Search