Page.pgOr:=poLandscape; 还是会显示polandscape :undeclared identifier
我真快疯掉了!!!该怎么办!!!
我的源码如下,请帮我在frreport1.showreport前面加行代码实现纸张横向
procedure Tpform.Button1Click(Sender: TObject);
var
v: TfrView;
b: TfrBandView;
Page: TfrPage;
begin
adoqueryp.Open ;
frReport1.Pages.Clear;
frReport1.Pages.Add; // create page
Page := frReport1.Pages[0];
b := TfrBandView.Create; // create Title band
b.SetBounds(0, 20, 0, 20); // position and size in pixels
b.BandType := btReportTitle; // (only Top and Height are significant
Page.Objects.Add(b); // for the band)
v := TfrMemoView.Create; // create memo
v.SetBounds(20, 20, 200, 16);
v.BandAlign := baWidth;
v.Prop['Alignment'] := frtaCenter; // another way to access properties
v.Prop['Font.Style'] := 2;
v.Memo.Add('电话号码簿');
Page.Objects.Add(v);
b := TfrBandView.Create; // create MasterData band
b.SetBounds(0, 60, 0, 16);
b.BandType := btMasterData;
b.Dataset := 'frDBDataSet1'; // band's dataset
Page.Objects.Add(b);
v := TfrMemoView.Create; // create memo
v.SetBounds(y, 40, 55, 16);
v.Memo.Add('联系人1');
v.FrameTyp :=15;
Page.Objects.Add(v);
v := TfrMemoView.Create; // create data field
v.SetBounds(y, 76, 55, 16);
v.Memo.Add('[adoqueryp."name"]');
v.FrameTyp :=15;
Page.Objects.Add(v);
frreport1.showreport;