protected void Page_Load(object sender, System.EventArgs e)
{
FpSpread1.Sheets[0].Cells[1, 1].Value = DateTime.Now;
}
protected void Button1_Click(object sender, EventArgs e)
{
//Date Occurs CF
FarPoint.Web.Spread.TimePeriodConditionalFormattingRule time = new FarPoint.Web.Spread.TimePeriodConditionalFormattingRule(FarPoint.Web.Spread.TimePeriod.Last7Days);
time.TimePeriod = FarPoint.Web.Spread.TimePeriod.Last7Days;
time.ForeColor = Color.Magenta;
FpSpread1.ActiveSheetView.SetConditionalFormatting(1, 1, time);
}