Board index » delphi » QReport PrintIfEmpty

QReport PrintIfEmpty

Hello
I'm using D3 with qreport.
In one of my reports i have a qrsubdetail+groupHeader componet.
I defined the PrintIfEmpty property as False but still,
even if there is no data to print the report comeout
with a big empty space where the qrsubdetail is located.
Any suggestions?
Thanks in advance Sorin
 

Re:QReport PrintIfEmpty


PrintIfEmpty looks at the Detail dataset, if there's a record there then it
will print.

--
ISC Jos Manuel Gmez-Ferrer y Reguero
Gerente de Sistemas
Qumica Adhn, S.A. de C.V.
www.paco.net.mx

Quote
Sorin Hershcu <so...@netvision.net.il> wrote in message

news:7tilhh$piq6@forums.borland.com...
| Hello
| I'm using D3 with qreport.
| In one of my reports i have a qrsubdetail+groupHeader componet.
| I defined the PrintIfEmpty property as False but still,
| even if there is no data to print the report comeout
| with a big empty space where the qrsubdetail is located.
| Any suggestions?
| Thanks in advance Sorin
|
|

Re:QReport PrintIfEmpty


Thankyou
Yes, but my problem is that even if there insn't any record
it still print a few blank lines.
Sorin

Ing Jos Manuel Gmez-Ferrer y R <nospamsiste...@paco.net.mx> wrote in
message news:7tisi0$sji1@forums.borland.com...

Quote
> PrintIfEmpty looks at the Detail dataset, if there's a record there then
it
> will print.

> --
> ISC Jos Manuel Gmez-Ferrer y Reguero
> Gerente de Sistemas
> Qumica Adhn, S.A. de C.V.
> www.paco.net.mx

> Sorin Hershcu <so...@netvision.net.il> wrote in message
> news:7tilhh$piq6@forums.borland.com...
> | Hello
> | I'm using D3 with qreport.
> | In one of my reports i have a qrsubdetail+groupHeader componet.
> | I defined the PrintIfEmpty property as False but still,
> | even if there is no data to print the report comeout
> | with a big empty space where the qrsubdetail is located.
> | Any suggestions?
> | Thanks in advance Sorin
> |
> |

Re:QReport PrintIfEmpty


Then you could do a Sysutils.Abort on the FormCreate event, that way you can
decide if you want to print it.

Hope this helps...

--
ISC Jos Manuel Gmez-Ferrer y Reguero
Gerente de Sistemas
Qumica Adhn, S.A. de C.V.
www.paco.net.mx

Quote
Sorin Hershcu <so...@netvision.net.il> wrote in message

news:7tk9ri$6o410@forums.borland.com...
| Thankyou
| Yes, but my problem is that even if there insn't any record
| it still print a few blank lines.
| Sorin
|
| Ing Jos Manuel Gmez-Ferrer y R <nospamsiste...@paco.net.mx> wrote in
| message news:7tisi0$sji1@forums.borland.com...
| > PrintIfEmpty looks at the Detail dataset, if there's a record there then
| it
| > will print.
| >
| > --
| > ISC Jos Manuel Gmez-Ferrer y Reguero
| > Gerente de Sistemas
| > Qumica Adhn, S.A. de C.V.
| > www.paco.net.mx
| >
| > Sorin Hershcu <so...@netvision.net.il> wrote in message
| > news:7tilhh$piq6@forums.borland.com...
| > | Hello
| > | I'm using D3 with qreport.
| > | In one of my reports i have a qrsubdetail+groupHeader componet.
| > | I defined the PrintIfEmpty property as False but still,
| > | even if there is no data to print the report comeout
| > | with a big empty space where the qrsubdetail is located.
| > | Any suggestions?
| > | Thanks in advance Sorin
| > |
| > |
| >
| >
|
|

Re:QReport PrintIfEmpty


If you don't want the report to print when the dataset is empty, in
the code where you print the report, check the recordcount on the
dataset first and only print the report if the recordcount > 0.

Rich

On Fri, 8 Oct 1999 10:32:40 +0200, "Sorin Hershcu"

Quote
<so...@netvision.net.il> wrote:
>Thankyou
>Yes, but my problem is that even if there insn't any record
>it still print a few blank lines.
>Sorin

Other Threads