Board index » delphi » Selecting single record for QuickReport

Selecting single record for QuickReport

I've just downloaded QuickReport 2.0d for Delphi 2.0. In ver 1.1 you could
print a single record by not selecting a datasource for the report
component. This no longer works in ver 2 (it prints no records unless a
datasource is selected in which case it prints them all).

Solution anyone?

TIA

Kenvyn Davies

 

Re:Selecting single record for QuickReport


I've just downloaded QuickReport 2.0d for Delphi 2.0. In ver 1.1 you could
print a single record by not selecting a datasource for the report
component. This no longer works in ver 2 (it prints no records unless a
datasource is selected in which case it prints them all).

Solution anyone?

TIA

Kenvyn Davies

Re:Selecting single record for QuickReport


On Mon, 15 Dec 1997 23:15:41 -0000, "Ivojo" <iv...@globalnet.co.uk>
wrote:

Quote
>I've just downloaded QuickReport 2.0d for Delphi 2.0. In ver 1.1 you could
>print a single record by not selecting a datasource for the report
>component. This no longer works in ver 2 (it prints no records unless a
>datasource is selected in which case it prints them all).

>Solution anyone?

>TIA

>Kenvyn Davies

You have to set the property PrintIfEmpty to true. Then, you leave the
master dataset blank. Finally, in the detail band, use the NeedData
parameter to control whether there is more data to print.

Steve F (Team B)

Re:Selecting single record for QuickReport


Quote
> >I've just downloaded QuickReport 2.0d for Delphi 2.0. In ver 1.1 you
could
> >print a single record by not selecting a datasource for the report
> >component. This no longer works in ver 2 (it prints no records unless a
> >datasource is selected in which case it prints them all).
> You have to set the property PrintIfEmpty to true. Then, you leave the
> master dataset blank. Finally, in the detail band, use the NeedData
> parameter to control whether there is more data to print.

Or, make your query only return one record, and it will then print all
there is to print, which is one.

Roger

Other Threads