Solved

CRYSTLE REPORT STORED PROCEDURE PARAMETERS

Posted on 2001-06-11
4
415 Views
Last Modified: 2012-08-14


We are using Crystle reports 6.0 with VB 6.0, we want to
pass two stored procedure parameters FROMDATE AND TODATE

    R.ReportFileName = "E:\PUBSREP.rpt"
   
    R.StoredProcParam(0) = "01/01/1994"
    R.StoredProcParam(1) = "01/01/1995"
    R.WindowState = crptMaximized
    R.Destination = crptToWindow
   
    R.Action = 1

we are getting error INVALID STORED PROCEDURE PARAMETER

any suggessions please

Thanks
0
Comment
Question by:dataplus
  • 2
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 40 total points
ID: 6179585
Dates are input to Crystal in a strange format.  I don't have the code here at home but will put it in a comment in the morning.

In my application the dates also required a time.

I see one problem with your code which may solve the problem.  Stored procedure parameters must include the parameter name.  The syntax is something like this

R.StoredProcParam(0) = "FIELDNAME;FIELDVALUE;A third value"

The third value escapes me in what it is for.  I think it is boolean for whether or not to prompt.

R.StoredProcParam(0) = "@FromDate;'01/01/0100:00:00;false"

The syntax for these varies with the connection method and the database.  What are you using?

good luck
mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 6179599
This is from the Crystal Decisions Knowledge Base.  An excellent source of information on Crystal Reports.

http://support.crystaldecisions.net/library/kbase/articles/c2005624.asp

CrystalReport1.StoredProcParam(1) = "1998-01-01 00:00:00.000"

Dates are YEAR-MONTH-DAY HOURS:MINUTES:SECONDS.MILLISECONDS

good luck
mlmcc
0
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6325259
dataplus

Do you require additional assistance, or can you close this question by
1. accepting an answer
2. leave a message in community support asking that it be PAQ'd or deleted (be sure to reference the question ID)

DRRYAN3
0
 

Expert Comment

by:ComTech
ID: 6494378
Question accepted by:

Thank you,
ComTech
Community Support Moderator

 

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question