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 26th, 2004, 10:28 PM
Registered User
 
Join Date: May 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Date Time - From & To Passing

Dear All,

I use CRPE to pass the FromDatetime & ToDateTime to the stored procedure being called by the CR8.5 .

For the reports where I use just 1 input DateTime, my application works fine,
Ex: SetParamField ( 1, DateStr )

but , when I try to do:

SetParamField ( 1, FromDateStr )

SetParamField ( 2, ToDateStr )

I get "Error Detected in Database DLL".

Can anyone help me .

Here's my small piece of code for your reference .

if (!PEConvertVInfoToPFInfo(ptrPEValueInfo
                                   , &ptrPEValueInfo->valueType
                                   , ptrPEParameterFieldInfo->CurrentValue)) {
                    throw new CCrystalException( m_printJob->GetErrorText() );} // if
               }

    objPEParameterFieldInfo.CurrentValueSet = 1;

  // Set the parameter field value
if (!PESetNthParameterField(m_printJob->GetJobHandle (), nth, ptrPEParameterFieldInfo)) {
  throw new CCrystalException( m_printJob->GetErrorText() ); } // if


Thanks & Regards
Sankar






Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Date & Time RICHBIRD Beginning VB 6 3 November 15th, 2007 08:59 AM
How can I set system time & date in VB.net ? mike123abc Pro VB.NET 2002/2003 1 April 27th, 2007 10:00 AM
how to get current date & time from client machine swati_joshi ASP.NET 1.0 and 1.1 Basics 2 April 28th, 2006 10:18 AM
Best method to store date & Time with SQL 2000 harini19 Java Basics 0 February 15th, 2006 12:52 AM
passing date time values to sql ashokparchuri ADO.NET 4 March 15th, 2005 01:47 AM





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