Hello Everyone,
I have a program written in vb.net (2008) that loads a Crystal Report with three sub-reports each in their own section. The report was originally written using CR version 8.5 but I have upgraded them to version 2013. They are working fine when I call them one at time to view, print, or save as PDF.
However, in one context I am using a loop to call several, one at time, to save them as PDFs into a directory, which is then uploaded to our FTP site. In this situation the sub-reports will sometimes be empty when there is data there. I found in this situations that if send the code back through again that the second time it will pull the data, most of time, but not always.
So, I thought I would write code to check to see if the sub-report has data before I save it to PDF and, if not, send it back through to try again. I thought it was a good idea but I cannot figure out how to do it. Each of the properties that I thought might work, IsLoaded and Rows, throw the exception "Not supported within sub-reports".
So, then, how do I check to see if the sub-report loaded with data or if it loaded at all?
Thanks for any help.
Rico