-
June 13th, 2012, 05:37 AM
#1
addin word document in c# - template style - crash?
Hi,
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?
Thanx,
Ben
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|