小弟想实现报表打印图片,图片以路径形式存于数据库中,想通过参数传递给FastReport,之后在脚本中用Picture.loadfromfile 显示,但参数一直都没传进去。参数我已经在数据字典中设置了。但在脚本中传参报错
标识符未宣布。
之后又在getValue 中同样报错
procedure TForm1.Frprt1GetValue(const VarName: String; var Value: Variant);
begin
with Frprt1.Dictionary do
begin
Varibles('PicPath'):=' F:\001.bmp'; //这里并没有有数据库字段,想用简单的试试能不能传参
end;end;
[Error] Unit_FRPR.pas(41): Undeclared identifier: 'Dictionary'
[Error] Unit_FRPR.pas(43): Undeclared identifier: 'Varibles'
我已经在论坛上转悠两天了,没有发现类似问题。请各位大虾帮帮在下吧 先谢过了……
标识符未宣布。
之后又在getValue 中同样报错
procedure TForm1.Frprt1GetValue(const VarName: String; var Value: Variant);
begin
with Frprt1.Dictionary do
begin
Varibles('PicPath'):=' F:\001.bmp'; //这里并没有有数据库字段,想用简单的试试能不能传参
end;end;
[Error] Unit_FRPR.pas(41): Undeclared identifier: 'Dictionary'
[Error] Unit_FRPR.pas(43): Undeclared identifier: 'Varibles'
我已经在论坛上转悠两天了,没有发现类似问题。请各位大虾帮帮在下吧 先谢过了……
有没有FR_Class.pas 文件啊,我咋找不着呢。都重装两次了郁闷
{读入Logo}
FBitmap.LoadFromFile(Asfile);
if not FBitmap.Empty then
TfrxPictureView(FReport.FindObject('PctLogo')).Picture.Bitmap.Assign(FBitmap);