Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: problem in loading dynamic crystal report asp.net Post Reply Post New Topic
Author Message
asmasm
Newbie
Newbie
Avatar

Joined: 07 Sep 2009
Online Status: Offline
Posts: 1
Quote asmasm Replybullet Topic: problem in loading dynamic crystal report asp.net
    Posted: 07 Sep 2009 at 2:28am
not getting data in vs2005 using asp.net 2.0 and i am using stored procedure
the data from dataset does not get loaded into crystal report as there is no error message
as my code is below
Dim con As New SqlConnection(ConfigurationManager.ConnectionStrings("satinconnectionstring").ConnectionString)
        con.Open()
        Dim cmd As New SqlCommand
        cmd.Connection = con
               Dim W As String = Today.DayOfWeek.ToString
         cmd.CommandText = "EXEC MYSP_DEMAND_SHEET '20983','" & M & "','" & W & "','" & dat & "'"
             Dim da As New SqlDataAdapter(cmd.CommandText, con)
        Dim ds As New DataSet
        da.Fill(ds)
       
        Dim myReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument
        myReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
        myReportDocument.Load(Server.MapPath("employee.rpt"))
            myReportDocument.Database.Tables("employee").SetDataSource(ds)
                CrystalReportViewer1.ReportSource = myReportDocument
        CrystalReportViewer1.DataBind()
     please help me in this regard
      


Tongue

Edited by asmasm - 07 Sep 2009 at 2:31am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.