|
-
Mar 4th, 2010, 02:58 AM
#33
Frenzied Member
Re: Crystal Report In VB.NET
Hi:
Sorry to open the post but i want to try your code and i have this message in this line:
"Type CrystalReportForm it's not defined"
I had follow all the steps that you tell in your post...something wrong?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ReportForm As New CrystalReportForm
Dim TableName(0) As String
Dim QueryString(0) As String
TableName(0) = "Lancamentos" 'Pass The Table That you used in the crystal Report
QueryString(0) = "SELECT * FROM TableName" ' Pass the Query
'ReportForm.MdiParent = MainForm 'Pass For Mdi True
ReportForm.ViewReport("MapaRecapitulativo.rpt", TableName, QueryString, )
' You can pass the Parameter Value It is Optional
ReportForm.Show()
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|