frxCrossView

Setting Dimensions | Rows to 1 and the following code:

procedure TForm1.frxReport1BeforePrint(Sender: TfrxReportComponent);
var
Cross: TfrxCrossView;
begin
if sender is TfrxCrossView then
begin
Cross := TfrxCrossView(sender);
with Cross do
begin
oratable1.First;
while not oratable1.Eof do
begin
AddValue([oratable1.fields[1].AsString],[oratable1.FieldByName('ename').asString] , [FloatToStr(oratable1.FieldByName('number').asFloat)]);
oratable1.Next;
end;
end;
end;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
frxReport1.ShowReport;
end;

delphi show erro:

could not convert variant of type (string) into type (double)



Comments

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.