Export datagridview a word

2

Good I have this problem in exporting a data gridview to word

    
asked by Felipe 21.10.2016 в 22:46
source

1 answer

1

Instead of invoking the style using quotes, you should use the enumerators, which maintain the standard between languages and versions.

        oDoc.Application
            .Selection
            .Tables[1]
            .set_Style(WdBuiltinStyle.wdStyleTableLightShadingAccent1);

I leave you the list of the multiple styles

Greetings

    
answered by 21.10.2016 в 23:38