Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2004, 10:52 PM
Registered User
 
Join Date: May 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old May 21st, 2004, 11:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

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.
 
Old May 26th, 2004, 10:20 PM
Registered User
 
Join Date: May 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old May 26th, 2004, 11:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
usin g stored procedure with parameter Sheraz Khan ASP.NET 2.0 Basics 1 September 5th, 2007 12:27 AM
Query Parameter of a Stored Procedure tarang SQL Server 2000 4 July 25th, 2007 11:43 AM
How to pass a parameter to a stored procedure? MaxGay2 VB.NET 2002/2003 Basics 1 November 8th, 2006 02:48 PM
Passing a parameter value to Stored Procedure mcinar SQL Server 2000 9 October 3rd, 2004 09:42 PM
How do I suppress the parameter prompting box? knakos Crystal Reports 2 August 21st, 2003 04:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.