Crystal Reports
--
Questions
--
Followers
Top Experts
Was trying to pass some parameters from VB to CR9 when the above error was encountered. This is the line that hits it.
crRpt.ParameterFields.GetI
I am very new to CR so any help apprciated.
Thanks
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Dim crRpt As CRAXDRT.Report
invoiceno = 2062
Set crApp = New CRAXDRT.Application
  Set crRpt = crApp.OpenReport(App.Path & "\invoice.rpt", 1)
  crRpt.Database.LogOnServer
 Â
  crRpt.RecordSelectionFormu
  crRpt.ParameterFields.GetI
 Â
  crRpt.MorePrintEngineError
  crRpt.EnableParameterPromp
  crRpt.DiscardSavedData
 Â
  Me.rptCRViewer.ReportSourc
  Me.rptCRViewer.ViewReport
  Me.Show






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
mlmcc
crRpt.ParameterFields(0).A
but that also give me the same error message. Strange.....
mlmcc

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Changed the code but the error is still there....any other possibilities?
frodoman






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
I don't think there is with the RDC. Â It could be done with other methods but I believe I read that Crystal removed that feature.
mlmcc
Dim crApp As CRAXDRT.Application
Dim crRpt As CRAXDRT.Report
invoiceno = "2062"
Set crApp = New CRAXDRT.Application
  Set crRpt = crApp.OpenReport(App.Path & "\invoice.rpt", 1)
  crRpt.Database.LogOnServer
 Â
  crRpt.RecordSelectionFormu
  crRpt.ParameterFields(1).A
 Â
  crRpt.MorePrintEngineError
  crRpt.EnableParameterPromp
  crRpt.DiscardSavedData
 Â
  Me.rptCRViewer.ReportSourc
  Me.rptCRViewer.ViewReport
  Me.Show
On running a param compare shown below, there is actually something passed to the parameter but it is not showing on the report. However there is no error reported.
Dim cParam As CRAXDRT.ParameterFieldDefi
For Each cParam In crRpt.ParameterFields
  Debug.Print cParam.Name
  Debug.Print cParam.IsCurrentValueSet
  Debug.Print cParam.Value
Next
If so is that field suppressed?
mlmcc

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
frodoman
Open the report
Click FILE
Ensure SAVE DATA WITH REPORT is turned off
mlmcc






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
mlmcc

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
I have found the data type is ususally the culprit in this situation.
Have you tried:
CrystalReport.ParameterFie
or
CrystalReport.ParameterFie
mlmcc &Â I got asker over the original question asked. Â EwaldL helped with the follow-up question.
mstemen's answer has no relevance.
frodoman






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Crystal Reports
--
Questions
--
Followers
Top Experts
Crystal Reports is a business intelligence application from SAP SE. It is used to graphically design data connections and report layouts from a wide range of data sources including Excel spreadsheets, Oracle, SQL Server databases and Access databases, BusinessObjects Enterprise business views, and local file-system information. Report designers can place fields from these sources on the report design surface, and can also deploy them in custom formulas (using either BASIC or Crystal's own syntax), which are then placed on the design surface. Crystal Reports also supports subreports, graphing, and a limited amount of GIS functionality.