Help with gb.report2

Ask about the individual Gambas components here.
Post Reply
Ham13
Posts: 10
Joined: Friday 24th June 2022 2:11pm

Help with gb.report2

Post by Ham13 » Wednesday 14th September 2022 7:26pm

Hello!

Does anyone out there know how to use gb.report2? I've looked over the internet and found that most of the information points back to gb.report which is deprecated. I have gotten a basic report to work but all the properties of controls and boxes do not appear to work.
No matter what I set properties to I still get the same two columns. I cannot position the report labels across the HBox. They just line up touching the right border of the one to it's left. Cannot size them or locate them by code. On the positive side I can display correct data but, I cannot format it or arrange it. I must be missing something.

If there is some documentation on gbReort2, please point me there. If you have used this component with success please let me know.

Thanks,
Marty :(

BruceSteers
Posts: 887
Joined: Thursday 23rd July 2020 5:20pm

Re: Help with gb.report2

Post by BruceSteers » Thursday 15th September 2022 9:10am

HBox ?? do you mean ReportHBox ?

If you look here (the docs you seek)...
http://gambaswiki.org/wiki/comp/gb.report2

there are many Report2 controls/containers listed and you have to use them instead of normal gambas ones.

Or are you already using the ReportHBox ?
Last edited by BruceSteers on Thursday 15th September 2022 11:21am, edited 1 time in total.

BruceSteers
Posts: 887
Joined: Thursday 23rd July 2020 5:20pm

Re: Help with gb.report2

Post by BruceSteers » Thursday 15th September 2022 9:13am


vuott
Posts: 129
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: Help with gb.report2

Post by vuott » Thursday 15th September 2022 12:13pm

BruceSteers wrote:
Thursday 15th September 2022 9:13am
and
...and Italian:
https://www.gambas-it.org/wiki/index.ph ... gb.report2
I am a European.

Amare memorentes atque deflentes ad mortem silenter labimur.

Ham13
Posts: 10
Joined: Friday 24th June 2022 2:11pm

Re: Help with gb.report2

Post by Ham13 » Thursday 15th September 2022 2:02pm

Bruce,

Thank you for your response. I will check out the articles you suggested. I am working with the report controls not the standard gambas ones. I copied a lot from the last example from Voutt. I managed to get the data and assign it to reportlabels as text but nothing shows on the report. I must be missing something. I'll look over what you sent and see where I'm wrong.

Thanks again. I'll let you know how i make out.

Marty

vuott
Posts: 129
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: Help with gb.report2

Post by vuott » Thursday 15th September 2022 2:47pm

Remember that Gianluigi (the author of that page of the Italian wiki on gb.report2) points out that the complete projects, related to the examples described, are located in "Software Farm".
I am a European.

Amare memorentes atque deflentes ad mortem silenter labimur.

Post Reply