June 13th, 2012, 06:37 AM
addin word document in c# - template style - crash?
I was wondering if anyone had done any C# office word addin coding?
Everything is great - except I can't seem to work out how to add custom table styles. I can add normal styles. But want to specify and add table styles particularly.
For example, I was trying this:
Word.Selection sel = application.Selection;
Word.Table table = null;
table = sel.Tables.Add( sel.Range, 1, 2 );
table.set_Style("ANewStyle"); //<-- causes an assert exception
So I've been wondering, how to add a table style and details to the word office design?
Click Here to Expand Forum to Full Width