Hi,
I am developing an application which creates pdfs for several Crystal reports(version 8.5). It works fine. Only thing is I am passing parameters from VB code. If there is no record for that parameter, the reports still creates pdf. I want to know if there is any way in VB code, I can check if the report doesn't have any data, so that I can avoid creating pdf of that report.
I am using Visual Basic 6 and Automation server.
Here is some part of my code...
Public crpAPP As New CRPEAuto.Application
Public crpReport As New CRPEAuto.Report
crpReport.SelectPrinter "winspool", "Acrobat PDFWriter", "LPT1"
crpReport.PageSetup.PaperSize = iPaperSize
crpReport.PageSetup.PaperOrientation = iOrin
crpReport.PrintOut False, 1
My question is, how do I check if the report has 0 records?
Any suggestion would be most welcome!
Thanks in advance,
ndp
I am developing an application which creates pdfs for several Crystal reports(version 8.5). It works fine. Only thing is I am passing parameters from VB code. If there is no record for that parameter, the reports still creates pdf. I want to know if there is any way in VB code, I can check if the report doesn't have any data, so that I can avoid creating pdf of that report.
I am using Visual Basic 6 and Automation server.
Here is some part of my code...
Public crpAPP As New CRPEAuto.Application
Public crpReport As New CRPEAuto.Report
crpReport.SelectPrinter "winspool", "Acrobat PDFWriter", "LPT1"
crpReport.PageSetup.PaperSize = iPaperSize
crpReport.PageSetup.PaperOrientation = iOrin
crpReport.PrintOut False, 1
My question is, how do I check if the report has 0 records?
Any suggestion would be most welcome!
Thanks in advance,
ndp