OpenXml word 2007 output RRS feed

  • Question

  • User1606700265 posted

    Hi folks, 


    Working on populating a word document template on the server. There is a word table generated but I would like the header for this table to be of a different color. I'm not able to find any recources on setting that for the tablerow or tablecell classes, any ideas?

    Friday, April 10, 2009 3:03 PM


  • User1606700265 posted

    Found it 

    TableCellProperties tcp = new TableCellProperties();
    Shading s = new Shading();
    s.Color = "auto";
    s.Fill = "B8CCE4";


    then you append tcp to your tablecell.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 10, 2009 5:43 PM