Thursday, June 18, 2015

Selection criteria not working in Crystal Reports and Visual Studio 2010

Problem:
I had upgraded my visual studio.net 2008 project to visual studio.net 2010. After that i noticed that some reports are not working properly. Infact selectioncriteria was not working. I tried many things but in vain.

Solution:
Just comment out or delete the following lines of code where the crystalreportviewer is defined in InitializeComponent()
        Me.crystalreportviewer .SelectionFormula

        Me.crystalreportviewer .ViewTimeSelectionFormula

3 comments:

  1. Great Solution Exactly you have to delete these lines of code.

    ReplyDelete

  2. It's Absolutly correct solution. I also did same.
    Just comment out or delete the following lines of code where the crystalreportviewer is defined in InitializeComponent()
    Me.crystalreportviewer .SelectionFormula

    Me.crystalreportviewer .ViewTimeSelectionFormula

    ReplyDelete