Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: blank reort displayed at design & runtime Post Reply Post New Topic
Author Message
svibuk
Newbie
Newbie


Joined: 03 Dec 2009
Online Status: Offline
Posts: 6
Quote svibuk Replybullet Topic: blank reort displayed at design & runtime
    Posted: 19 May 2011 at 8:33pm
SQLSTR = "INSERT into   temrp  SELECT *   FROM Table1 T" _
                   & " LEFT JOIN PRDT P ON T.PID = P.PID" _
                   & "  JOIN CUSTOMER C ON T.CID= C.CID" _
                   & "  where month= '" & Month(dtpmonth.Value) & "' and year= '" & Year(dtpyear.Value) "


 Dim cmd As New SqlCommand(SQLSTR, conn)
      dim da as new sqldataadapter(cmd)
dim table as new datatable
da.Fill(table)

   Dim ReportName As String = "myreport.rpt"
        ReportName = Application.StartupPath & "\" & ReportName & ""

        If Not IO.File.Exists(ReportName) Then

            Throw (New Exception("Unable to locate report file:" & vbCrLf & ReportName))

        End If
        Dim ReportForm As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument
        ReportForm.Load(ReportName)

        ReportForm.SetDataSource(Table)


this is the code i am using

i am using VS2005 with inbuilt crystal report

i do have few recorrds in the table , even in debugging in the immediate window if i check table.rows.count it displays the count as 10

but the crystal report appears blank


even when i browse the fields in design view i get the data


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.016 seconds.