General information
Category:
Reports & Report designer
>>>>>Hi,
>>>>>I have to design a report which spans over two pages. So I have adjusted the papersize to 2x A4 implented all the objects and print.
>>>>>Grr printer prints perfectly page1 and page2 but report is printed 98! times.
>>>>>Any idea how to instruct I only want 2 pages and no more?
>>>>
>>>>Could it be that your current alias, when running the report, is a cursor with 98 records?
>>>>Try "report form xxx next 1 to...", may work.
>>>
>>>Rather that the current alias is not selected prior to running the report - happens when reports are run from a form which contains a grid
>>
>>Gregory,
>>Report is running from a cursor only. No form with grid involved here.
>>See my example: a .prg to instantiate a cursor and run the report after that.
>>See what happens, my printer environment indicates 98! pages. It should be only 2.
>>Regards,
>>Koen
>
>Koen, I second Martina's result: a 2-page printer is previewed when you run the report against the cursor.
>
>There is a reference to a "zzdatabase" and to a table "visite" in the report's data environment. Are you sure your 49 records aren't coming from that source? Neither Martina nor I have access to that table, so the 2 page report for us would be expected.
Antonio,
John,
Indeed I found that a table Visite was erroneously added to the dataenvironment, reccount of 49, so a 2-page report will give 98 pages!
Now after removing that table it works as intended.
Thanks !
Best Regards,
Koen
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only