how to print one record twice in one page

adaada
edited 7:17AM in FastReport 4.0
how to print one record twice in one page?
i have some records and i want to print them double in one page like :

page1

example1
example1


page2

example2
example2
....

how can i recall one record twice on masterdata ?
i appreciate your response.

thankyou in adavance,

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:17AM
    do not connect the master band to a dataset
    set its number of recods to 2
    write code to control movement of the dataset
  • adaada
    edited 7:17AM
    thank you, i explored internet before i took your answer and i closed it.

    thanks again >
  • adaada
    edited 7:17AM
    Hi
    i have created this report but now its not working.

    Masterdata can not get the number of rows to the init code

    //main code
    begin
    ds := Report.GetDataset('RAPORTX');
    masterdata1.rowcount := ds.recordcount; ???
    end.

    Where is the error???

    thank you
  • adaada
    edited 7:17AM
    ada wrote: »
    Hi
    i have created this report but now its not working.

    Masterdata can not get the number of rows to the init code

    //main code
    begin
    ds := Report.GetDataset('RAPORTX');
    masterdata1.rowcount := ds.recordcount; ???
    end.

    Where is the error???

    thank you

    plz any idea to solve this problem??
  • adaada
    edited 7:17AM
    plz any idea to solve this problem???????
  • gordkgordk St.Catherines On. Canada.
    edited October 2014
    first error
    masterdata1.rowcount := ds.recordcount;
    should be
    masterdata1.rowcount := ds.recordcount x 2;
    you also need a variable to keep track of which iteration of the master record you are on
    and set it back to 1 after the copy of the record is printed.
    and if your out put does not use a whole page you will need to call engine.newpage.
    you must also write code to move the ds to the next record if not eof.
  • edited 7:17AM
    Maybe I am missing something, but it seems like you could make your data band connected to the dataset like normal and just make it two lines high and drop each field in twice, one on top of the other. Each record shows up twice.

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.