private void ThisAddIn_Startup( object sender, System. Alternatively, you can add a rectangle shape to cover the paragraph, then to change the shape. I would appreciate any feedback as to where I'm going wrong. Step 4: You will see the paragraph background is now light orange. Please note the code below does execute as I've tested by placing a brake point and stepping through each line but still the background colour remains white. I'm looking for a way to programatically change the background colour of a Microsoft Office Word 2010 document.ġ)I've recorded a vb macro and changed the background colour in Word manually.Ģ)Took the automatically generated vba code and attempted to convert it to C#ģ)Below is the C# code I use to attempt to change the background colour of the document to red, but when I run the add on it stays white and no errors are thrown.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |