CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    42

    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

  2. #2
    Join Date
    Jun 2012
    Posts
    3

    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

  3. #3
    Join Date
    Jun 2012
    Posts
    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
  •  





Click Here to Expand Forum to Full Width

Featured