Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...