Recent

Author Topic: [SOLVED] LazReport  (Read 586 times)

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 435
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
[SOLVED] LazReport
« on: February 14, 2026, 06:09:49 pm »
I'm new to LazReport, first report I designed appears to me designed correctly but when I run it, it doesn't show any data???

Simple report for just printing the current record in the Laz form. See the attachment screenshot of the LazReport designer. Anyway, placed a TFrReport and a TFrDBDataSet  component on the Laz form.  Defined TFrDBDataSet properties: Dataset: frDBDSetAppmt, DataType: dtDataSet, InitialZoom: pzDefault,  ShowProgress: True and Title: Appointment Memo. Then set TfrReport properties as: Dstatset: frDBDSetAppmt, DataType: dtDataSet, ShowProgress: True, StoreInForm: False or True?, and Title: Appointment Memo.  See the attachment for an image of LazReport designer. This report is designed to view/print just one Appointment record. I have 3 bands: Title, Page Header and Detail. In the Detail band I have put rectangular objects with the data fields from the dataset.

Anyone know the secret or what I'm missing?
« Last Edit: February 15, 2026, 03:51:12 pm by 1HuntnMan »

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 435
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: LazReport
« Reply #1 on: February 14, 2026, 06:20:12 pm »
Here's a couple of screenshots of the properties for the frRptAppmt for this Appointment Memo Report, see attached for how I set the properties and the next post for the frDBDSetAppmt properties for both...

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 435
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: LazReport
« Reply #2 on: February 14, 2026, 06:22:03 pm »
Here's the image for the frDBDSetAppmt properties...

dseligo

  • Hero Member
  • *****
  • Posts: 1671
Re: LazReport
« Reply #3 on: February 14, 2026, 08:51:08 pm »
I have 3 bands: Title, Page Header and Detail.

Detail band doesn't exist in LazReport.

You probably need to use MasterData band (see here: https://wiki.freepascal.org/LazReport_Tutorial#The_main_event:_showing_data_in_the_master_data_band).

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 435
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: LazReport
« Reply #4 on: February 15, 2026, 02:26:34 pm »
DSeligo, didn't think I needed a Master/Detail band(s).  The Appointments form doesn't have a master/detail relationship as far as the table(s). So, thought I just needed a detail band.  I'll relook. I downloaded the LazReport Documentation manual and reading and using it to learn how to use LazReport.  I'll experiment a bit and see if I can figure it out, thanks!

dseligo

  • Hero Member
  • *****
  • Posts: 1671
Re: LazReport
« Reply #5 on: February 15, 2026, 03:11:08 pm »
DSeligo, didn't think I needed a Master/Detail band(s).  The Appointments form doesn't have a master/detail relationship as far as the table(s). So, thought I just needed a detail band.  I'll relook. I downloaded the LazReport Documentation manual and reading and using it to learn how to use LazReport.  I'll experiment a bit and see if I can figure it out, thanks!

You don't need master/detail relationship. You just need master.

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 435
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: LazReport
« Reply #6 on: February 15, 2026, 03:50:38 pm »
DSeligo, okay thanks. I create a Master band and copied the fields from the detail to the master and deleted the Detail band. Now working! Thanks.  ;D

 

TinyPortal © 2005-2018