|
-
May 24th, 2012, 04:04 AM
#1
using crystal report with asp.net
using crystal report with asp.net
1)i need to creat e report with a parameter , the value of which will be passed from front end
i have created a report & a parameter & passing value but when i execute i get a page where in again ia m asked for the parameter value & even after enetr teh value i get msg parameter not supplied
2) i need to create a forumla based on the paramater value
if param value="R"
field1 shld be dsiplayed
else
field2
3) when i view the report from IE the icons are not visible & when viewd in FF i get
submit query submit query submit query submit query submit query submit query 1 / 1 submit query submit query
4) i am creating mailing labels & wish to display the address based on the above paramter condition but not able to do it
-
June 14th, 2012, 10:40 AM
#2
Re: using crystal report with asp.net
here is an example, this is the code in the page load of my application with parameters. My parameters are @id and @cat - make sure you also include the list below
Imports CrystalDecisions
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports.Engine
Then in the page load:
Dim paramFields As New ParameterFields()
Dim paramFieldID As New ParameterField()
Dim paramFieldCat As New ParameterField()
Dim paramDiscreteValueID As New ParameterDiscreteValue()
Dim paramDiscreteValueCat As New ParameterDiscreteValue()
paramFieldID.Name = "@id"
paramDiscreteValueID.Value = 346
paramFieldID.CurrentValues.Add(paramDiscreteValueID)
paramFieldCat.Name = "@cat"
paramDiscreteValueCat.Value = 35
paramFieldCat.CurrentValues.Add(paramDiscreteValueCat)
paramFields.Add(paramFieldID)
paramFields.Add(paramFieldCat)
CrystalReportViewer1.ParameterFieldInfo = paramFields
-
June 14th, 2012, 10:42 AM
#3
Re: using crystal report with asp.net
sorry, forgot to mention in previous post, that is VB code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|