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

Why do we use ansi keyword?

0 Answers  


What is the difference between system.applicationexception class and system.systemexception?

0 Answers  


What are the different types of applications supported in .net (or) .net framework?

0 Answers  


So you know which dll is used for microsoft .net run time?

0 Answers  


Is VB.NET object oriented? What are the inheritances does VB.NET support ?

13 Answers   Digital GlobalSoft, Global Infotech, Infosys,






Explain the difference between value and reference types?

0 Answers  


1.wht is satellite assembly??? 2.How Garbage Collector works can u explain ????

3 Answers   ABC,


Explain namespace?

0 Answers  


Define naming convention?

0 Answers  


What is the role of new keyword?

0 Answers  


Explain the difference between c# and vb.net?

0 Answers  


Is vb.net dead?

0 Answers  


Categories