I’m creating charts in Microsoft Word using C#. I can successfully do most of my formatting through code. However, I still need some help. Please see the image below.

This is a screen shot of the Format Data Series window when you right-click on a chart line and select Format Data Series.
The only 2 properties that are giving me trouble are Cap Type and Join Type. The VBA recorder doesn’t even record anything when you change them.
I need to be able to change the cap type on the Line through C#. Does anyone have any ideas??
As far as I’m aware,
Cap typeandJoin typeare not exposed through the object model in Word / Excel. The only way I can think of to accomplish this is usingSendKeysin VBA but I don’t know off the top of my head how that would be implemented in C# – it’s not trivial but there may be some implementations out there. Even if you get that working, though, I’d not recommend goint that route – Word 2007, Word 2010 and the upcoming Word 2013 all have somewhat different UI-s so the keystrokes that need to be sent would be different. Users could also press keys just while you’re trying send keys to the Word instance. And then you’d have to deal with charts having multiple series, etc.