Changing paper on manual build
Hi,
When I build reports with Letter paper (on manual build), the printer don't modify the paper from A4 to Letter, but in preview the size is correct (Letter).
Source example:
var
Page: TfrxReportPage;
Band: TfrxBand;
Memo: TfrxMemoView;
begin
frxReport1.Clear;
Page := TfrxReportPage.Create(frxReport1);
Page.CreateUniqueName;
Page.SetDefaults;
Page.PaperSize := DMPAPER_LETTER;
Band := TfrxReportTitle.Create(Page);
Band.CreateUniqueName;
Band.Top := 0;
Band.Height := 20;
Memo := TfrxMemoView.Create(Band);
Memo.CreateUniqueName;
Memo.Text := 'Hello FastReport!';
Memo.Height := 20;
Memo.Align := baWidth;
frxReport1.ShowReport;
end;
Thanks
When I build reports with Letter paper (on manual build), the printer don't modify the paper from A4 to Letter, but in preview the size is correct (Letter).
Source example:
var
Page: TfrxReportPage;
Band: TfrxBand;
Memo: TfrxMemoView;
begin
frxReport1.Clear;
Page := TfrxReportPage.Create(frxReport1);
Page.CreateUniqueName;
Page.SetDefaults;
Page.PaperSize := DMPAPER_LETTER;
Band := TfrxReportTitle.Create(Page);
Band.CreateUniqueName;
Band.Top := 0;
Band.Height := 20;
Memo := TfrxMemoView.Create(Band);
Memo.CreateUniqueName;
Memo.Text := 'Hello FastReport!';
Memo.Height := 20;
Memo.Align := baWidth;
frxReport1.ShowReport;
end;
Thanks