ok, thanks. If you did not start with a sample project, I suggest that you do so.
You’ll find some in Xojo’s ‘Example Projects/Printing and Reporting/Reporting/’. Choose one that is closest to what you want to achieve. Starting with a working file is easier than taking a code snippet from the doc (my own experience).
I checked the example projects in 2022 r2 before posting and there were none related to reporting! after your reply I wend back and thought to check 2022 r1.1 and low and behold there they are! Apologies I incorrectly assumed both r1.1 and r2 would have the same example projects but how wrong was I
Thanks for the help I hope to be able to get my head around reports now