Printing Stringgrid
i study on PrintStringGrid Demo in the FastReport3.
i want to print the StringGrid's content with this code :
Cross.AddValue([j],,[strtotime(SG.Cells[i - 1, j - 1] )]);
if any cell's value like '12' there is no problem
BUT if the cell value is '12:34' or 'abc' then
it returns "Invalid Varian type conversion" ERROR.
what should i do ?
i want to print the StringGrid's content with this code :
Cross.AddValue([j],,[strtotime(SG.Cells[i - 1, j - 1] )]);
if any cell's value like '12' there is no problem
BUT if the cell value is '12:34' or 'abc' then
it returns "Invalid Varian type conversion" ERROR.
what should i do ?
Comments
It returns "Could not convert variant of type(String) into type(Double) ERROR.