Private void button2_Click(object sender, EventArgs e) OShape.Height = oWord.InchesToPoints(3.57f) OShape.Width = oWord.InchesToPoints(6.25f) If desired, you can proceed from here using the Microsoft Graph Object model on the oChart and oChartApp objects to make additional changes to the chart. 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) Demonstrate use of late bound oChart and oChartApp objects to manipulate the chart object with MSGraph. 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 bold and italic. 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 */ Private void button1_Click(object sender, EventArgs e)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |