With VB6 and CR10 and RDC.
I was able to manage to preview records and then close it if there is no records to show. I use the crReport_NoData event to trap it, then display a message box that there are no records. When the user clicks the message box OK button, the preview form unloads.
Now if the user wants to print it, they still get a blank page with the headers coming out of the printer showing no data. Is there a way to have CR do the filtering beforehand so that if there are no records to show, it won't print that one page?
I know the Report.PrintOut statement is worthless on this issue. But it is useful on the other hand.
Thanks.
I was able to manage to preview records and then close it if there is no records to show. I use the crReport_NoData event to trap it, then display a message box that there are no records. When the user clicks the message box OK button, the preview form unloads.
Now if the user wants to print it, they still get a blank page with the headers coming out of the printer showing no data. Is there a way to have CR do the filtering beforehand so that if there are no records to show, it won't print that one page?
I know the Report.PrintOut statement is worthless on this issue. But it is useful on the other hand.
Thanks.