p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Crystal Reports (http://p2p.wrox.com/forumdisplay.php?f=113)
-   -   Suppress Stored Procedure Parameter Prompting (http://p2p.wrox.com/showthread.php?t=13235)

shrishankaraan May 20th, 2004 10:52 PM

Suppress Stored Procedure Parameter Prompting
 
Hi

I migrated from CR 6.0 to CR8.5.
I find that when I try to run the Crystal reports 8.5 in Batch mode ( a set of 20 reports ) called from VC++ application and the stored procedure parameter being passed from the application using SETPPARAM. this was working fine in version CR6.0, but, it keeps prompting values for Stored Procedure parameter in each & every report.


Anyway, to over come this?

by the way, i tried using the CRPE API, setpromptingdialog ( false ). it results in "error detected in database dll".

Assume there are 2 parameters required for the Crystal Report
and a 3rd parameter which is the stored procedure parameter which appears as "@thirdparam" inside the report.

my code is :

myReport.SetParamField ( 0, param1)

myReport.SetParamField( 1, Param2)

myReport.setSPParam( 0, SPparam1 );

This was working fine in CR 6.0 without prompting during batch mode.

In 8.5, it pops up for each & every stoerd proc parameter.


this is very urgent. can someone help me?

Thanks & Regards
Sankar


melvik May 21st, 2004 11:44 PM

I use this codes for CR 8.5v for my ASP (VB-script) & works fine.
Code:

set session("ParamCollection") = Session("oRpt"+insName).Parameterfields             
 
  set Param1 =  session("ParamCollection").Item(1)
  Call Param1.SetCurrentValue(groupRange)
 
  set Param2 =  session("ParamCollection").Item(2)
  Call Param2.SetCurrentValue(MaxValue)

  set Param3 =  session("ParamCollection").Item(3)
  Call Param3.SetCurrentValue(MinValue)



HTH.

Always:),
Hovik Melkomian.

shrishankaraan May 26th, 2004 10:20 PM

Dear Hovik :

Thanks very much. it works fine, just that I had to format the Date Time using the right API calls of CRPE.

Thanks very much.

Sankar


melvik May 26th, 2004 11:13 PM

Well what format u wanna give & When?! do u wanna do it Before passing params or in CR u need to do?!

Always:),
Hovik Melkomian.


All times are GMT -4. The time now is 11:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.