Results 1 to 2 of 2

Thread: Using MS SQL Server Stored Procedure in Crystal Report

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question Using MS SQL Server Stored Procedure in Crystal Report

    I have a stored procedure(MonthlyReport(@month INT)), then i want crystal report use this stored procedure by assign the parameter @month value. I have problem in setting parameter value in vb.net. Can one give me an example.

  2. #2
    New Member
    Join Date
    Dec 2005
    Location
    India(Gujrat)
    Posts
    2

    Re: Using MS SQL Server Stored Procedure in Crystal Report

    hi,
    if u r using stored procedure then use the following code
    Dim frm As New DailyReport --here i am passing two date values to the report
    CRV.Visible = True
    frm.SetParameterValue("@FDate", DTPFrom.Value)
    frm.SetParameterValue("@TDate", DTPTo.Value)
    CRV.ReportSource = frm
    CRV.Show()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width