need help wif crytal reports

saifudin

New member
Joined
Apr 19, 2005
Messages
2
Programming Experience
Beginner
hi, i'm using vb.net and i need to generate reports using crystal report but however the crystalreportviewer is not in the webform in the toolbox...

can anyone help me wif this .... like wat component or reference do i have to add to be able to use crystal reports in vb.net....

thank you
 

ran_deep

New member
Joined
Jan 25, 2005
Messages
4
Location
Malaysia
Programming Experience
3-5
right click on toolbox. Select 'Add/Remove Items' option. In the .Net Framework Components bar, scroll and look for CrystalReportViewer. Tick either the one for Windows form or Web form.
 

saifudin

New member
Joined
Apr 19, 2005
Messages
2
Programming Experience
Beginner
thanks ran deep for the reply.

i did as you said but there's no crystalreportviewer under the 'Add/Remove Items' option. In the .Net Framework Components bar.
I am using vb.NET 2003 not vs.NET ... could this be the reason why crystal reportviewer is not here...?
 

ran_deep

New member
Joined
Jan 25, 2005
Messages
4
Location
Malaysia
Programming Experience
3-5
i'm not that sure about this, but believe you need to select CrystalReport during the installation process.
 

Schenz

Well-known member
Joined
Sep 11, 2004
Messages
181
Location
Cincinnati, OH
Programming Experience
5-10
Crystal Reports does not come with Standard, only Professional and Above.
 

RijazNalakath

New member
Joined
Apr 25, 2005
Messages
1
Location
now in qatar
Programming Experience
Beginner
saifudin said:
hi, i'm using vb.net and i need to generate reports using crystal report but however the crystalreportviewer is not in the webform in the toolbox...

can anyone help me wif this .... like wat component or reference do i have to add to be able to use crystal reports in vb.net....

thank you
saifudheen..
Do U want to use Crystal report in **.net
U should hav to follow the code below..
Note: U should put a crystalreportviewer control from the toolbox to a form
Dim mc As rpt = New crystalreport1

Dim margins As PageMargins

Dim mt As CrystalDecisions.Shared.ConnectionInfo=New CrystalDecisions.Shared.ConnectionInfo

mt.ServerName = "Your Computer Name"

mt.DatabaseName = "your Database Name"

mt.UserID = "User Id to database login"

mt.Password = "Password to database login"
Me.CrystalReportViewer1.SelectionFormula="{tablename.fieldname} =" & _ me.textbox1.text(for example: to read a value from a text box)
'from th above code the viewer ill select records from table where value of 'field name= the value in the textbox
Me.CrystalReportViewer1.ReportSource = mc

Me.CrystalReportViewer1.LogOnInfo(0).ConnectionInfo = mt
Me.CrystalReportViewer1.Show()

U can use this code ...
if there s any doubts mail me to rijaz4u@hotmail.com
 
Top Bottom