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

I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com

0 Answers  


How do you do multithreading application in VB ?

4 Answers   Satyam,


what is common type system?

0 Answers  


What are the difference between dispose(), close(), exit(), end()?

0 Answers  


Define clr?

0 Answers  


What does assert() method do In VB.NET

0 Answers   MCN Solutions,


What do you mean by serialization and deserialization and it's use.

0 Answers  


Explain the difference between value and reference types?

0 Answers  


Why is the xml infoset specification different from the xml dom?

0 Answers  


what is vb.net?

10 Answers  


Explain and brief about rapid application development tool?

0 Answers  


What is a static class?

0 Answers  


Categories