Hi
I am new to .NET and my first assignment is to make to develop Crystal Reports for an applicaiton.This is a pure windows based application.
I have different types of data to be printed based on the selection in a check box.
Can I make a section added by me "visible" based on the data that i checked to be pritned.If so ,please help me with some sampel code.Visible I mean ,the checked data should be shown after I run the application
Hope to hear from some one soon.I spent the whole day searching for some tips!!!Hi,
At first create one Project and add one form into the project...... add option controls to it and add 1 button control to it and name it as generate report..in Generate report click event add this code.....Don't forget to get Crystal Report Viewer on to the form....
Declaration section.........
Public ReportType As String
Public FAErlangs As New FA_ErlangProjections
Public FARProjections As New FA_RadiosProjection
Public FATProjections As New FA_TimeslotsProjection
in button click event......
If optTrafficProjections.Checked = True Then
CrystalReportViewer1.ReportSource = FAErlangs
CrystalReportViewer1.EnableDrillDown = False
ElseIf optFARProj.Checked = True Then
CrystalReportViewer1.ReportSource = FARProjections
CrystalReportViewer1.EnableDrillDown = False
ElseIf optFATProj.Checked = True Then
CrystalReportViewer1.ReportSource = FATProjections
CrystalReportViewer1.EnableDrillDown = False
End If
hope this works for you...... if you have any questions mail me at garlapati76@.yahoo.com.
Thanks.sql
Tuesday, March 20, 2012
Crystal Reports +Selection of a particular section
Labels:
applicaiton,
application,
assignment,
based,
crystal,
database,
develop,
microsoft,
mysql,
net,
oracle,
particular,
pure,
reports,
section,
selection,
server,
sql,
windows
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment