Thursday, June 18, 2015

Selection criteria not working in Crystal Reports and Visual Studio 2010

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

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

        Me.crystalreportviewer .ViewTimeSelectionFormula