Click here to Skip to main content
15,897,291 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi in my winform application whenver i select button to get report in crystal report one window will open and asking to enter parameter and every time have to select next and finish?

how to ride from this..
is there any solution to get direct report?
thanks help me ..
Posted
Updated 3-Sep-17 1:09am

Does this[^] help ?
 
Share this answer
 
You are not too clear but it looks like you have parameters for crystal report that are passed at runtime. You are getting prompt and you want to avoid it.
If so, see on how to pass on the parameters to report at runtime and get desired result:
Crystal Report Filtering Using Selection Parameters[^]
MSDN: Tutorial: Filtering Data Using Selection Formulas[^]

VB.NET Crystal Reports String parameter [^]
For passing parameter from TextBox to Crystal report Using vb.Net[^]
 
Share this answer
 
1. Don't use CrystalReportViewer1.RefreshReport or CrystalReportViewer1.Refresh
2. Set Report source from properties to none
3. Report source must be assigned Dynamically
4. in your code have this sequence
VB
REPORT1.Refresh()
REPORT1.SetParameterValue(0, "some default value") 'assign some default value
CrystalReportViewer1.ReportSource = REPORT1 'dynamically assigned report sourc
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900