Per Page Copies

Hi all,

i have a report with multiples pages, in this report i need to make copies at runtime of a single page or pages, the user can modify count of copies per page, like this sample:

PAGE START => 3 Copies
PAGE TWO => 1 Copie
PAGE LAST => 5 Copies

The user select page copies in my form - outside report, before lauch preview or print.

Any ideas to make this?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 6:49PM
    after loading report and before calling show or prepare
    set the pagecount property for each design page
  • edited 6:49PM
    i try (frxrprtCUSTOM.FindObject('NameOfPage') as TfrxPage).PageCount but property PageCount does not exists.
  • gordkgordk St.Catherines On. Canada.
    edited 6:49PM
    you must use the correct cast a design page is tfrxreportpage, not tfrxpage.
    see the programmers manual chapter on modifying report page's properties under working with the tfrxreport component.
  • edited 6:49PM
    TfrxReportPage don't have PageCount property too!
  • gordkgordk St.Catherines On. Canada.
    edited 6:49PM
    what version and build number you may be out of date.
    procedure TForm1.Button1Click(Sender: TObject);
    var
    page: tfrxreportpage;
    begin
    frxreport1.loadfromfile(wpath+'test.fr3);
    Page := TfrxReportPage(frxReport1.Pages[1]);
    page.PageCount := 2;
    frxreport1.ShowReport;
    end;
    works fine for me
    fr4.5.34

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.