Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Print two report on the same page

  • Print two report on the same page

    Posted by Ghiara Mimmo on October 6, 2018 at 8:27 am

    Hello to all,
    I should print two reports in A5 on a folgio A4, I’ll explain better.
    The report to be printed now is printed in A5 but to avoid waste of paper in my previous version (developed with another tool) I printed the same myodule twice on the same sheet.
    If you have any suggestions or ideas.
    Thank you

    Ghiara Mimmo replied 5 years, 5 months ago 3 Members · 4 Replies
  • 4 Replies
  • Dario L.

    October 9, 2018 at 8:56 am

    I’ve never used it before but you can try it by adding this line of code into your report’s construct method:
    Do $cinst.$repeatfactor.$assign(2)

  • Rudolf Bargholz

    October 19, 2018 at 10:09 am

    Hi Mimmo,
    This is probably not something I would want to do in Omnis, but ….
    You can store a page setup for a printer in a report. That page setup stores detailed printer specific information, for example how many pages shoud be printed on one page, which printer are you printing to, what tray etc.. If you now set the repeatfactor to 2 in your Omnis report, two pages will be printed, normally on two pages. If you tell the printer driver to print two pages on one A4 page, your two pages will be printed on one page, saving you paper. It is a similar principle to printing one paper page front and back. You cannot tell Omnis to do that for you, but the printer driver knows how to do this, so you load the page setup with the correpsonding printer settings before printing your report, and let the printer driver do all the magic. Not all printer drivers support this, so it makes little sense to have Omnis define this directly.
    Here some links that might help explaining how load page setup works:

  • Ghiara Mimmo

    October 24, 2018 at 4:28 pm

    Thank’s to all

    • Ghiara Mimmo

      January 20, 2019 at 9:09 am

      Thanks for the answers
      I did a bit of testing and the repeatfactor works as long as there is no subtotal in the print. My print, however, sometimes must print a only record, sometimes more records, that are repeated. I do not know if when I have to print more records the thing works is a chance but it can happen. I will make a text of how many recods should be printed and I will print them according to the number of records

Log in to reply.