Presentation ML Formatting RRS feed

  • Question

  • Hello,

    I am trying to conditionally format cells in a table in a PowerPoint slide throught C#. I am generating the slide from a SharePoint list using OpenXML, Drawing and Presenation ML. I am stumped on how I might apply conditional color to a table cell in the PowerPoint table. Does anyone know if this is possible? Does anyone know if there is a way to apply style (change background color of cell)?
    Thank you. My code below:

    foreach(Announcement item in q)
    //Add table row to PowerPoint table
    Drawing.TableRow tr = new Drawing.TableRow();
    Drwaing.TableCell tc = new Drawing.TableCell();
    Drawing.TableCellStyle tsc = new Drawing.TableCellStyle();
    tr.Height = 370840;

    string stat = item.Status.ToString();
    if (stat == "Active")
    //todo: format cell color based on stat value

    Tuesday, January 15, 2013 4:22 PM


  • Hi Sfe2,

    Thank you for posting in the MSDN Forum.

    It based on my experience that you cannot apply conditional format on table in Word or PowerPoint whatever through UI or programmatically.

    Hope it helps.

    Best regards,

    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, January 16, 2013 10:24 AM