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