If i = 3 Then fdate = DateTimePicker1.Value.ToString("MM/dd/yyyy HH:mm:ss tt") sdate = DateTimePicker1.Value.ToString("dd-MM-yyyy") .set_TextMatrix(0, i, sdate) ElseIf i > 3 And i < 34 Then If rbtDaily.Checked = True Then j = 1 ndate = (Now.AddDays(j).ToString("MM/dd/yyyy HH:mm:ss tt")) sdate = Now.AddDays(j).ToString("dd-MM-yyyy") '.set_ColWidth(i, 1000) ': .get_GridLinesHeader("'" & ndate & "'") error at this line: .set_TextMatrix(0, i, sdate) ElseIf rbtWeekly.Checked = True Then ndate = DateValue(Now.AddDays(6).ToString("MM/dd/yyyy HH:mm:ss tt")) sdate = Now.AddDays(6).ToString("dd-MM-yyyy") .set_TextMatrix(0, i, sdate) ElseIf rbtMonthly.Checked = True Then j = 1 ndate = DateValue(Now.AddMonths(j).ToString("MM/dd/yyyy HH:mm:ss tt")) sdate = Now.AddDays(j).ToString("dd-MM-yyyy") ' tdate = ndate .set_TextMatrix(0, i, sdate) End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)