2 Question

seasea
edited 2:06AM in FastReport 3.0
1. There are 20 columns in the report , the paper can print 15 columns. How to print last 5 columns on the next paper?

2. How to add a Memo use progam? My code is wrong.

procedure TReportTestForm.Button1Click(Sender: TObject);
var
DynamicMemo: TfrxMemoView;
begin
frxReport1.LoadFromFile('Test.fr3');
DynamicMemo := TfrxMemoView.Create(frxReport1);
DynamicMemo.Parent := frxReport1.FindObject('PageHeader1');
DynamicMemo.Text := 'Test';
DynamicMemo.Name := 'memo123';
DynamicMemo.Width := 20;
DynamicMemo.Left := frxReport1.FindObject('Memo8').Left+frxReport1.FindObject('Memo8').Width;
frxReport1.Report.Objects.Add(DynamicMemo);
frxReport1.ShowReport;
end;

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:06AM
    adding objects
    Re read the programmers manual on building reports from code
    you must declare variables of required types and find finobjects
    and then add to the correct object in the same manner, as if you were building from scratch.
    ;)
  • seasea
    edited 2:06AM
    Thanks you, I see. The question 2 is ok. I can add Object.
    But the question 1??? ;)
  • edited 2:06AM
    Use cross-tab object (or vertical bands - see demos\main demo).

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.