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. Visual Basic
  4. I need your help desperately on Crystal report [modified]

I need your help desperately on Crystal report [modified]

Scheduled Pinned Locked Moved Visual Basic
helpdatabasewpfwcf
1 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.
  • D Offline
    D Offline
    Dambod
    wrote on last edited by
    #1

    I have a crystal report, report viewer and a database. the Crystal Report gets its data when datagridview1 item is selected(changed). But I couldn't find the problem why variable "disv3" can't get value at run time. "DS" is my crystal report dataset which acts as datasource. Dim rpt As New GradeReport Dim dd As New DS rpt.SetDataSource(dd) Dim paramfield1, param2, param3 As New ParameterField Dim paramfields As New ParameterFields Dim discreteval1, disv2, disv3 As ParameterDiscreteValue paramfield1.Name = "column1" param2.Name = "column2" param3.Name = "column3" TextBox5.Text = "introduction to management" ' For i As Integer = 0 To DataGridView1.Rows.Count - 1 discreteval1 = New ParameterDiscreteValue discreteval1.Value = DataGridView1.CurrentCell.Value.ToString paramfield1.CurrentValues.Add(discreteval1) disv2 = New ParameterDiscreteValue disv2.Value = DataGridView1.CurrentRow.Cells(1).Value.ToString param2.CurrentValues.Add(disv2) disv3 = New ParameterDiscreteValue ' TextBox5.DataBindings.Add(New Binding("text", bs, "coursename")) c.custView = New DataView(c.ds.Tables("student"), "", "studid", DataViewRowState.CurrentRows) For c.rowIndex = 0 To c.ds.Tables("student").Rows.Count - 1 disv3.Value = c.custView(c.rowIndex)("StudentFullName").ToString param3.CurrentValues.Add(disv3) Next paramfields.Add(paramfield1) paramfields.Add(param2) paramfields.Add(param3) GradeReportForm.CrystalReportViewer1.ParameterFieldInfo = paramfields GradeReportForm.CrystalReportViewer1.AutoSize = True 'Next GradeReportForm.CrystalReportViewer1.ReportSource = rpt GradeReportForm.Show() GradeReportForm.CrystalReportViewer1.Refresh()

    modified on Tuesday, August 18, 2009 5:09 AM

    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