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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Report viewer

Report viewer

Scheduled Pinned Locked Moved ASP.NET
databasequestionhelp
3 Posts 2 Posters 1 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
    Aptiva Dave
    wrote on last edited by
    #1

    Here is my problem: I have a web app connected to a SQL database. I need to create a report that displays counts of certain records during a certain time period. Also, within the report I need to display the name of the person who created the report, their phone number, and the date that the report was printed, but all of this is entered from a different page and I was passing it via query string. Can this be done and how can I do it?

    R 1 Reply Last reply
    0
    • A Aptiva Dave

      Here is my problem: I have a web app connected to a SQL database. I need to create a report that displays counts of certain records during a certain time period. Also, within the report I need to display the name of the person who created the report, their phone number, and the date that the report was printed, but all of this is entered from a different page and I was passing it via query string. Can this be done and how can I do it?

      R Offline
      R Offline
      ReactiveX
      wrote on last edited by
      #2

      That is most definitely possible, with the following constraints: In order to display the records for a certain time period, your rows need to have a created date column or something that you can base your query on. You won't be able to report the time that the report was printed on because the event hasn't happened yet. You could alternatively store this date in the DB and report on it later. To pass the person's name and phone number via a query string is easy. Once you're ready to redirect the user to the report page, do the following: Response.Redirect("Report.aspx?name=" & sPersonName & "&phone=" & sPersonPhone)

      Daniel Minnaar Lead Software Developer

      A 1 Reply Last reply
      0
      • R ReactiveX

        That is most definitely possible, with the following constraints: In order to display the records for a certain time period, your rows need to have a created date column or something that you can base your query on. You won't be able to report the time that the report was printed on because the event hasn't happened yet. You could alternatively store this date in the DB and report on it later. To pass the person's name and phone number via a query string is easy. Once you're ready to redirect the user to the report page, do the following: Response.Redirect("Report.aspx?name=" & sPersonName & "&phone=" & sPersonPhone)

        Daniel Minnaar Lead Software Developer

        A Offline
        A Offline
        Aptiva Dave
        wrote on last edited by
        #3

        Yes, but how do I put that information into the report? I already have a date column that I can base my query on, but the issue is that I just don't know how to search by these parameters.

        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