[Gambas-user] How to get report page to repeat multiple times

Struct Engr structengr1 at gmail.com
Fri Aug 9 16:58:58 CEST 2019


Fabien,

Thanks for the suggestion.  I believe I have tried what you suggested but I
am not getting it to work.  I put the middle section of the report in a
ReportPanel for it to be repeated on multiple pages.  I set expand to true
for this ReportPanel and also the datacount = 2.  See the attached image
"reportdesign.png" of the report in the report designer.  I set the border
of the ReportPanel to the color violet so that it can be easily
identified.
We I display the report in print preview, everything inside the middle
ReportPanel disappears and the total numbers of pages scrolls out of
control.  See attached image "preview.png" for the view of the report in
print preview.
Any help or suggestions you can offer to correct the missing
containers/data in the ReportPanel would be appreciated.  I have attached
the OutputReport.report file in case it will help in discovering the
problem.  If more information is needed please ask.

Thanks,
Greg

On Thu, Aug 1, 2019 at 8:18 AM Fabien Bodard <gambas.fr at gmail.com> wrote:

> In fact it is the container who is repeted
>
> So imagin  a 3 container content for the page
>
> The firt panel and the last one have the fixed value to true
>
> And the center expand to true
>
> Then in the code try
>
> Mycenter panel.datacount =2
>
>
> You will havz two page with the same header and  footer
>
>
>
> Le mer. 31 juil. 2019 19:57, Gianluigi <bagonergi at gmail.com> a écrit :
>
>>
>>
>> Il giorno mer 31 lug 2019 alle ore 19:47 Struct Engr <
>> structengr1 at gmail.com> ha scritto:
>>
>>> I am trying to use the gb.report2 component to create a multiple page
>>> report.  Each page is to have the same format but with just different
>>> result values.  I have created the single page report template.  See
>>> attached pdf and report file.  On the attached pdf I have shaded in pink
>>> the parts of the page that are to be repeated on all pages unchanged.  In
>>> the middle of the page shaded in yellow is the part which should have the
>>> same layout on each page but with just different numeric values in the
>>> tables and different images but same size and location.  I have tried using
>>> ReportPanel and ReportVPanel without success.  When I put the containers
>>> from the middle portion of my report inside either ReportPanel or
>>> ReportVPanel they seem to disappear.  I am asking for suggestions on how I
>>> can create the multiply page report as described above.  Also any
>>> description of the purpose or the capabilities provided by ReportPanel and
>>> ReportVPanel would be helpful.
>>>
>>> Thanks in advance for your help.  Please let me know if more information
>>> is needed.
>>>
>>> Regards,
>>> Greg
>>>
>>
>> Hi,
>> in the Software farm in Examples there is ReportTest, maybe it can help
>> you.
>> Regards
>> Gianluigi
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190809/f23c684f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reportdesign.png
Type: image/png
Size: 49444 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190809/f23c684f/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preview.png
Type: image/png
Size: 62803 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190809/f23c684f/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OutputReport.report
Type: application/octet-stream
Size: 10175 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190809/f23c684f/attachment-0001.obj>


More information about the User mailing list