troubleshooting Question

no stored procedures property when using crystal reports OCX in .NET

Avatar of JayMeredith
JayMeredithFlag for United States of America asked on
Crystal ReportsVisual Basic Classic
3 Comments1 Solution618 ViewsLast Modified:
I am migrating an application using the Crystal Reports OCX COM control from VB6 to VB.NET.  The reports all use SQL stored procedures to get their data.  In VB6, I would set the report's stored procedure's parameters using the STOREDPROCPARAM(X) property of the OCX control as in the following code:

 With Me.CRpt1
          .StoredProcParam(0) = My.Settings.Lang_ID         'Lang Id
          .StoredProcParam(1) = My.Settings.Warehouse      'Warehouse
          .StoredProcParam(2) = Me.ultText1.Text           'Beginning Request #
          .StoredProcParam(3) = Me.ultText2.Text          'Ending Request #
          .StoredProcParam(4) = Me.ultText3.Text           'Beginning Stock #
 End With

The problem is that when I use the OCX control as a COM object in my .NET project, all references to StoredProcParam() have squiggles and the messages says that StoredProcParam is not a member of AcCrystal.AcCrystalReports.  Is there an alternate way of setting store procedure parameters for the OCX control?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros