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. Web Development
  3. ASP.NET
  4. Range values in Crystal Report

Range values in Crystal Report

Scheduled Pinned Locked Moved ASP.NET
questioncsharporaclevisual-studio
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.
  • G Offline
    G Offline
    Girish481
    wrote on last edited by
    #1

    Hello, Visual Studio 2005 Default.ASPX Two TextBoxes>>1.TextBox1 (To enter Start Roll Number) 2.TextBox2 (To enter End Roll Number) Response.Redirect("Secm1998.aspx?startrol=" & TextBox1.Text & "&endrol=" & TextBox2.Text) Secm1998.aspx>>1.CrystalReportSource1 2.CrystalReportViewer1 Secm1998.rpt I wish to show only those records whose roll number (Oracle 10G Table) in the range of TextBox1 and TextBox2 in the CrystalReportViewer1. For this: How do i set CrystalReportViewer1.SelectionFormula as Rol (name of column in the table) in range of TextBox1 and TextBox2 Thanks & Regards Girish Sharma

    L 1 Reply Last reply
    0
    • G Girish481

      Hello, Visual Studio 2005 Default.ASPX Two TextBoxes>>1.TextBox1 (To enter Start Roll Number) 2.TextBox2 (To enter End Roll Number) Response.Redirect("Secm1998.aspx?startrol=" & TextBox1.Text & "&endrol=" & TextBox2.Text) Secm1998.aspx>>1.CrystalReportSource1 2.CrystalReportViewer1 Secm1998.rpt I wish to show only those records whose roll number (Oracle 10G Table) in the range of TextBox1 and TextBox2 in the CrystalReportViewer1. For this: How do i set CrystalReportViewer1.SelectionFormula as Rol (name of column in the table) in range of TextBox1 and TextBox2 Thanks & Regards Girish Sharma

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Set the formula like this "{Student.Rol} >= " + rollNumber1 + " AND ({Student.Rol } <= " + rollNumber2 Here rollNumber1 and rollNumber2 are values of TextBox1 and TextBox2 respectively

      G 1 Reply Last reply
      0
      • L Lost User

        Set the formula like this "{Student.Rol} >= " + rollNumber1 + " AND ({Student.Rol } <= " + rollNumber2 Here rollNumber1 and rollNumber2 are values of TextBox1 and TextBox2 respectively

        G Offline
        G Offline
        Girish481
        wrote on last edited by
        #3

        Thanks for your reply and it worked fine; but one little question further: Dim mySelectFormula As String = "ToNumber({secm98.rol}) >= " & Request.QueryString("startrol") & " AND ToNumber({secm98.rol}) <= " & Request.QueryString("endrol") CrystalReportViewer1.SelectionFormula = mySelectFormula Now it is asking username and password before showing the report; how do i set the username and password in the code. Regards Girish Sharma

        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