PrintTable Example - MasterData from Report is not printed
Hi!
I'm using your demo of FastReports 4 with Delphi 2009 to find out whether it suits our needs. I tried to built an example as it is done in your PrintTable Demo, but it won't work!
All other Components of the Report are working and printed/shown via frxReport1.showReport; That is Header, Footer and a ColumnHeader Band. I've put a CrossView Object into the ColumnHeader using your code in OnBeforePrint-Event (cross.addValue ...) and it works fine (shows data). But it does not work with the Master Band.
I checked the sender of the OnBeforePrint: For each component this event is called. I show a message containing the senders name. This way I could see, that this event is called for each component and probably even for the MasterData, but c.name (with c being the sender of OnBeforePrint) is empty in that case. There is something wrong with this MasterBand.
Does anyone have an idea what happened there? Did anyone ever have this problem?
I was really happy to find FastReports, hoping this might be the perfect solution for our project, but I'm a bit dissappointed that this simple example won't work. I hope someone can help.
Thank you,
S.Schm.
I'm using your demo of FastReports 4 with Delphi 2009 to find out whether it suits our needs. I tried to built an example as it is done in your PrintTable Demo, but it won't work!
All other Components of the Report are working and printed/shown via frxReport1.showReport; That is Header, Footer and a ColumnHeader Band. I've put a CrossView Object into the ColumnHeader using your code in OnBeforePrint-Event (cross.addValue ...) and it works fine (shows data). But it does not work with the Master Band.
I checked the sender of the OnBeforePrint: For each component this event is called. I show a message containing the senders name. This way I could see, that this event is called for each component and probably even for the MasterData, but c.name (with c being the sender of OnBeforePrint) is empty in that case. There is something wrong with this MasterBand.
Does anyone have an idea what happened there? Did anyone ever have this problem?
I was really happy to find FastReports, hoping this might be the perfect solution for our project, but I'm a bit dissappointed that this simple example won't work. I hope someone can help.
Thank you,
S.Schm.
Comments
I've attached the sample project. You'll need your own data though to run it.
I've put two crossViews into the report. One lays in a ColumnHeaderBand, the other in this annoying MasterDataBand. I get a perfect Table in the ColumnHeaderBand, but nothing with the MasterData.
Thank you again.