Printing Stringgrid

edited 4:13AM in FastReport 3.0
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 ?

Comments

  • edited May 2005
    I have the same problem.
    It returns "Could not convert variant of type(String) into type(Double) ERROR.
  • edited May 2005
    I have solved it! In the PrintStringGrid Demo, double click the frxReport1, then we get into the Designer. Double-clicking calls the object editor. Click on the "Cell" field in the area of the item with down arrow. Select "None" in the drop-down list. Then it can print the strings value in the Stringgrid.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.