Crystal Reports: stream to PDF

clabarca

Member
Joined
Aug 11, 2005
Messages
7
Hello,

I have the following problem: Using VS.NET, in VB, I am loading a report file (.rpt) into a report document object. During runtime, I modify the RecordSelectionFormula property to filter on a user entered criteria, and then I stream the report out as a PDF doc.

The problem I have is that the RecordSelectionFormula has no effect at all. If I bind a report viewer object to the report document object, then the filter works, but if I stream out as PDF, it does not. The ONLY difference in the code is to either bind a report viewer to the report document or stream the report doc out as PDF.

The original reports were created with CR 8.5.

Any ideas? Is this a bug in Crystal?

Any help wouldbe appreciated.

Thanks
 
Update: If I use the ReportDocument.ExportToDisk method to export the report to a PDF file on disk, then it does function properly. Not when I stream it though. Interesting.
 
Back
Top