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

9 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
  3. mobileogram check this website i does it have crystal report ????

    ReplyDelete
  4. Great website with good information. Thank you for Sharing this great article.
    best fitness gym in Karachi

    ReplyDelete
  5. I am thankful for this blog giving unique and helpful knowledge about this topic, I read your blog now share great information here. This blog increase my knowledge source...
    commercial kitchen equipment

    ReplyDelete
  6. Ciao Pakistan comprises a highly qualified and dedicated team, wholly committed to provide effective and efficient Translations. We can provide better services to our clients regarding embassy visa as well.
    news

    ReplyDelete