Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Warnings with FillPattensForeground and FillPattern
posted

Hi,

I am using FIllPatternforegroundclor and fillpatternbackgroundcolor and i see the API are obsolete. Can anyone help me in getting the equivalent of these API's.

as i am seeing warnings with these messages as well as FillPattern.

Thanks in advance...

Ravi Raj Nukala

  • 30
    Verified Answer
    posted

    You can use something like this. That works!!

    e.WorksheetRow.Cells[i].CellFormat.Fill = 
    new CellFillPattern(new WorkbookColorInfo(Color.FromArgb(80, 124, 209)), 
    new WorkbookColorInfo(Color.White), FillPatternStyle.Solid);

    You can also see for more details
    http://www.scriptscoop.net/t/e8a79375f25c/.net-speed-up-export-in-infragistics-web-excel-exporter.html