how to connect crystal report with vb.net ?

Answers were Sorted based on User's Feedback



how to connect crystal report with vb.net ?..

Answer / ranjith

Click on Project menu
then Click Add New Item
Choose Crystal Report
Give the name of the report that you want to give
Click on Add Report

Is This Answer Correct ?    6 Yes 1 No

how to connect crystal report with vb.net ?..

Answer / kafeel ahmad

Take crystal report from toolbox .Take New form (I named it
frmRpt)Then take crystal report Viewer from tool box and
place it on new form(frmRpt) I named crystal report Viewer
as crptVW
double click on newform(frmRpt) and place this code---

Public Class frmRpt
Public strRptName As Object
Public strRptFilter As String
Private Sub frmRpt_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
If strRptFilter <> "" Then
crptVW.SelectionFormula = strRptFilter
End If
crptVW.ReportSource = strRptName
crptVW.Show()
End Sub
End Class


now if u want to call it on button_click then paste this
code on that button_click event ------

Dim objRpt As New frmRpt
objRpt.strRptName = New crList
' objRpt.strRptFilter = "{ConsultantMaster.ConId}="
& cboConIDX.SelectedValue 'if want to filter
objRpt.Show()

'now u can open as many crystal report just paste code
above on button_click()

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More VB.NET Interview Questions

Write a program for calculator in VB.NET

6 Answers   CMC, College School Exams Tests, IBM, NIIT, Practical Viva Questions, Subex,


Explain about branching logic control in vb.net?

0 Answers  


Explain global assembly cache (gac)?

0 Answers  


How to store jpeg / gif / bmp image in database and how to retrieve them? The most stressful condition is database is distributed and stored images can be retrive from any computer in network and any one can store images from other computer!! plss help its urgent.......RAHUL RATHOD

3 Answers  


How to Insert a TextBox value in to Sql database using VB.Net coding?

5 Answers  


What is the diff between vb mdi form and .net mdi form?

0 Answers  


Explain clr?

0 Answers  


What is the class that allows an element to be accessed using unique key?

0 Answers  


How does vb.net achieve polymorphism?

0 Answers  


Define clr?

0 Answers  


What are the parts of the visual basic control?

0 Answers  


Write the role of new keyword?

0 Answers  


Categories