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. Database & SysAdmin
  3. Database
  4. passing parameters to a report project

passing parameters to a report project

Scheduled Pinned Locked Moved Database
helpcsharpdatabasesql-serversysadmin
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.
  • A Offline
    A Offline
    Ali Sapanci
    wrote on last edited by
    #1

    hi everyone, ım using .net and sql server 2005, ı have a report project and this project have parameters.think that like "primary school" and "high school fields". sometimes, ı want to filter outputs with two parameters, and sometimes ı want to filter with just one parameter. thats the time that ı have problems. when ı pass only a parameter, ı want that this report doesnt care with the second parameter. but, it understands it (param1=something_ı_want, param2=null). then it searches for null values in second parameter and as an output, ı have nothing. do you know how can ı fix that problem, how can ı say to this report "dont care with second parameter, ı only ask for first one"? :) thanks for your help, Ali Sapancı

    A 1 Reply Last reply
    0
    • A Ali Sapanci

      hi everyone, ım using .net and sql server 2005, ı have a report project and this project have parameters.think that like "primary school" and "high school fields". sometimes, ı want to filter outputs with two parameters, and sometimes ı want to filter with just one parameter. thats the time that ı have problems. when ı pass only a parameter, ı want that this report doesnt care with the second parameter. but, it understands it (param1=something_ı_want, param2=null). then it searches for null values in second parameter and as an output, ı have nothing. do you know how can ı fix that problem, how can ı say to this report "dont care with second parameter, ı only ask for first one"? :) thanks for your help, Ali Sapancı

      A Offline
      A Offline
      Ajith P T
      wrote on last edited by
      #2

      i think u r using crystal report,better you pass recordset to the report at runtime. At run time you can frame your SQL as you want and create the recordset and assign that record set to the report. that will be very flexible than using the parameters in report

      A 1 Reply Last reply
      0
      • A Ajith P T

        i think u r using crystal report,better you pass recordset to the report at runtime. At run time you can frame your SQL as you want and create the recordset and assign that record set to the report. that will be very flexible than using the parameters in report

        A Offline
        A Offline
        Ali Sapanci
        wrote on last edited by
        #3

        it is not my decision, ım in an internship now and that is what they want:)

        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