B
bbscom
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button2Click(Sender: TObject);
var
frReport:TfrReport;
frPictureView: TfrPictureView;
begin
frReport:=TfrReport.Create(Self);
frReport.Pages.Clear;
frReport.Pages.Add;
frReport.DoublePass := True;
frReport.Pages.Pages[0].ChangePaper($100, 800, 600, -1, poPortrait);//此行不工作???
frPictureView := TfrPictureView.Create;
frPictureView.Prop['Stretched'] := False;
frPictureView.SetBounds(20, 20, 90, 130);
frPictureView.Name := 'ProductPIC';
frReport.Pages.Pages[0].Objects.Add(frPictureView);
frPictureView.Picture.LoadFromFile('e:/winnt/system32/tem.bmp');
frReport.ShowReport;
end;
var
frReport:TfrReport;
frPictureView: TfrPictureView;
begin
frReport:=TfrReport.Create(Self);
frReport.Pages.Clear;
frReport.Pages.Add;
frReport.DoublePass := True;
frReport.Pages.Pages[0].ChangePaper($100, 800, 600, -1, poPortrait);//此行不工作???
frPictureView := TfrPictureView.Create;
frPictureView.Prop['Stretched'] := False;
frPictureView.SetBounds(20, 20, 90, 130);
frPictureView.Name := 'ProductPIC';
frReport.Pages.Pages[0].Objects.Add(frPictureView);
frPictureView.Picture.LoadFromFile('e:/winnt/system32/tem.bmp');
frReport.ShowReport;
end;