` 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 November 21, 2024, 11:54 am
This article has been viewed/printed 35306 times.