
If desired, you can proceed from here using the Microsoft Graph OChartApp.GetType().InvokeMember("Update",īindingFlags.InvokeMethod, null, oChartApp, null) Update the chart image and quit MSGraph. OChart.GetType().InvokeMember("ChartType", BindingFlags.SetProperty, OChartApp = oChart.GetType().InvokeMember("Application",īindingFlags.GetProperty, null, oChart, null) manipulate the chart object with MSGraph.

Demonstrate use of late bound oChart and oChartApp objects to Ref oMissing, ref oMissing, ref oMissing) Ref oMissing, ref oMissing, ref oMissing, OTable = (wrdRng, 3, 5, ref oMissing, ref oMissing) Word.Range wrdRng = _Item(ref oEndOfDoc).Range Insert a 3 x 5 table, fill it with data, and make the first row Object oRng = _Item(ref oEndOfDoc).Range Insert a paragraph at the end of the document. Insert a paragraph at the beginning of the document. Object oEndOfDoc = "\\endofdoc" /* \endofdoc is a predefined bookmark */

With: private void button1_Click(object sender, System.EventArgs e) In the code window, replace the following code: private void button1_Click(object sender, System.EventArgs e) On the View menu, select Toolbox to display the Toolbox, and then add a button to Form1.ĭouble-click Button1. If you are prompted to generate wrappers for the libraries that you selected, click Yes. Click OK in the Add References dialog box to accept your selections.Microsoft Office XP does not include PIAs, but they can be downloaded. Note Microsoft Office 2003 includes Primary Interop Assemblies (PIAs).

Note In Visual Studio 2005, you do not have to click Select.

