Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem with using ParameterField class in CrystalReport.

Problem with using ParameterField class in CrystalReport.

Scheduled Pinned Locked Moved C#
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hdv212
    wrote on last edited by
    #1

    hi i want create ParameterField class in my app but i don't found it in crystalreport NameSpace, where it ? and ReportDocument does not have a ParameterFields property. Here is Code : ReportDocument report = new ReportDocument(); report.Load(@"MyReportFile.rpt"); //i could not create ParameterField because i don't found it in crystal report namespace foreach(ParameterField field in report.ParameterFields) { if(field.ParameterFieldName == "MyName") { field.CurrentValues.Add(MyDateValue); } }

    B 1 Reply Last reply
    0
    • H hdv212

      hi i want create ParameterField class in my app but i don't found it in crystalreport NameSpace, where it ? and ReportDocument does not have a ParameterFields property. Here is Code : ReportDocument report = new ReportDocument(); report.Load(@"MyReportFile.rpt"); //i could not create ParameterField because i don't found it in crystal report namespace foreach(ParameterField field in report.ParameterFields) { if(field.ParameterFieldName == "MyName") { field.CurrentValues.Add(MyDateValue); } }

      B Offline
      B Offline
      bearfx
      wrote on last edited by
      #2

      Make sure you are using the right namespaces. I have the following using statements in my sample using CrystalDecisions.CrystalReports.Engine ; using CrystalDecisions.Shared ; using CrystalDecisions.Windows.Forms ; Also, make certain you are referencing the right assemblies. The following are ref's in my project CrystalDecisions.CrystalReports.Engine CrystalDecisions.ReportSource CrystalDecisions.Shared CrystalDecisions.Windows.Forms The full path/classes are CrystalDecisions.CrystalReports.Engine.ReportDocument CrystalDecisions.Shared.ParameterField The sample I sent you works with Crystal Reports XI R2, but was the same in CR X.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups