` Printed Icetips Article

Icetips Article



Par2: Print a "no records" band
2000-06-07 -- Chris Cordes
 
>I read somewhere that you could create a detail band that said Sorry
>No Records Found. And then print that detail from the TakeNoRecords
>method. BUT that can't happen because at that time, the report isn't
>opened yet.
>I tried 
>    OPEN(SELF.Report)
>    SELF.Report{PROP:Preview} = SELF.PreviewQueue.Filename
>    print(rpt:Norecords)
>    Endpage(report)
>
>But it doesn't work. I'd like this to show up in the preview as well.
>
>Any suggestions?
>
>Chris C., Cordes Software, Maywood, New Joisey
>CW, and C5EE

Hello Again and thanks to everyone - I found the answer! and I was
close on my first try - go figure.
At the TakeNoRecords just this before the parent call
      OPEN(SELF.Report)
      SELF.Report{PROP:Preview} = SELF.PreviewQueue.Filename
      print(rpt:NoPagesDet)
      SELF.Response = RequestCompleted
      RETURN

Works like a charm!



Printed April 28, 2024, 9:48 am
This article has been viewed/printed 35111 times.