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. Regarding Crystal Reports that comes integrated with VS 2005

Regarding Crystal Reports that comes integrated with VS 2005

Scheduled Pinned Locked Moved ASP.NET
helpquestiondatabasevisual-studio
2 Posts 1 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.
  • N Offline
    N Offline
    NetBot
    wrote on last edited by
    #1

    Hi all, I don`t know whether it`s the right forum to ask this question, i had some problems using the crystal reports. Well the first problem is the crystal report that comes bundled with VS 2005 doesn`t support newline characters set through code behind. So to solve the issue you have to add the stored proc in the field explorer and drag in the field to report and tick the check box in field format to "can grow". But then the proc has an input parameter which it receives from the querystring. I tried doing rpt.SetParameterValue("@param1", Request("Trans_no").ToString) but it always asks for this parameter before loading the report. Instead it should take it from the query string. Does any one know how do i achieve this...

    N 1 Reply Last reply
    0
    • N NetBot

      Hi all, I don`t know whether it`s the right forum to ask this question, i had some problems using the crystal reports. Well the first problem is the crystal report that comes bundled with VS 2005 doesn`t support newline characters set through code behind. So to solve the issue you have to add the stored proc in the field explorer and drag in the field to report and tick the check box in field format to "can grow". But then the proc has an input parameter which it receives from the querystring. I tried doing rpt.SetParameterValue("@param1", Request("Trans_no").ToString) but it always asks for this parameter before loading the report. Instead it should take it from the query string. Does any one know how do i achieve this...

      N Offline
      N Offline
      NetBot
      wrote on last edited by
      #2

      Solution found... Just use in the foll code in your page load event Dim paramField As New ParameterField() Dim paramFields As New ParameterFields() Dim paramDiscreteValue As New ParameterDiscreteValue() paramField.Name = "@param1" paramDiscreteValue.Value = Request("Trans_no").ToString paramField.CurrentValues.Add(paramDiscreteValue) paramFields.Add(paramField) CrystalReportViewer1.ParameterFieldInfo = paramFields

      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