Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. RecordSelection in Crystal Reports

RecordSelection in Crystal Reports

Scheduled Pinned Locked Moved C#
csharpdatabasehelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marix
    wrote on last edited by
    #1

    Hi, I have a problem: I have an .NET application that uses Crystal Reports as reporting tool. I need to filter records. The problem is that I have just dataView.RowFilter string but Crystal reports do not accept it becouse they have their own syntax for selecting records. Is there any way i can give normal MS SQL syntax string to filter records? (I mean where clouse) Or I need to create translator from SQL syntax to Crystal syntax? Do not offer to use ADO.NET datasets, they work very slow. Thanx

    B 2 Replies Last reply
    0
    • M Marix

      Hi, I have a problem: I have an .NET application that uses Crystal Reports as reporting tool. I need to filter records. The problem is that I have just dataView.RowFilter string but Crystal reports do not accept it becouse they have their own syntax for selecting records. Is there any way i can give normal MS SQL syntax string to filter records? (I mean where clouse) Or I need to create translator from SQL syntax to Crystal syntax? Do not offer to use ADO.NET datasets, they work very slow. Thanx

      B Offline
      B Offline
      Braulio Dez
      wrote on last edited by
      #2

      MMm.... well you can set that DataView in a new DataTable, and pass it as parameter to the Report as a dataset parameter. HTH Braulio

      1 Reply Last reply
      0
      • M Marix

        Hi, I have a problem: I have an .NET application that uses Crystal Reports as reporting tool. I need to filter records. The problem is that I have just dataView.RowFilter string but Crystal reports do not accept it becouse they have their own syntax for selecting records. Is there any way i can give normal MS SQL syntax string to filter records? (I mean where clouse) Or I need to create translator from SQL syntax to Crystal syntax? Do not offer to use ADO.NET datasets, they work very slow. Thanx

        B Offline
        B Offline
        Braulio Dez
        wrote on last edited by
        #3

        You can't use a DataView as a datasource. It's supposed to work, but my contact at Crystal told me that there is a bug in the current release that doesn't let it connect properly. Hopefully they will fix this in a future release. If you want to see all the ways you can connect a datasource to a report then check out Chapter 14 of my free online ebook. ----------------------- You are right. CR works with datasets, but not dataview. I discovered this while working on my book and discussed it with tech support. They worked on it and decided that there must be a casting error in their code and they created a KB issue for it. Hopefully it will be fixed in a future service pack.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups