Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 20th, 2004, 10:52 PM
Registered User
 
Join Date: May 2004
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old May 21st, 2004, 11:44 PM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik Send a message via Skype™ 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.
Reply With Quote
  #3 (permalink)  
Old May 26th, 2004, 10:20 PM
Registered User
 
Join Date: May 2004
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old May 26th, 2004, 11:13 PM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik Send a message via Skype™ 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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 01: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



All times are GMT -4. The time now is 02:46 PM.


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