Help with gb.report2

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

Help with gb.report2

Post by Ham13 »

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 :(
User avatar
BruceSteers
Posts: 1521
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Help with gb.report2

Post by BruceSteers »

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.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1521
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Help with gb.report2

Post by BruceSteers »

If at first you don't succeed , try doing something differently.
BruceS
vuott
Posts: 262
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: Help with gb.report2

Post by vuott »

BruceSteers wrote: Thursday 15th September 2022 9:13amand
...and Italian:
https://www.gambas-it.org/wiki/index.ph ... gb.report2
Europaeus sum !

Amare memorentes atque deflentes ad mortem silenter labimur.
Ham13
Posts: 19
Joined: Friday 24th June 2022 2:11pm

Re: Help with gb.report2

Post by Ham13 »

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: 262
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: Help with gb.report2

Post by vuott »

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".
Europaeus sum !

Amare memorentes atque deflentes ad mortem silenter labimur.
Post Reply