Datawindow Erros After a Crystal Report??

Datawindow Erros After a Crystal Report??

Post by Bob Web » Sun, 04 Feb 1996 04:00:00



Anyone else getting DW errors after generating a Crystal Report
using their run-time engine???

Everything's fine under development on NT, but then when the updated app was
deployed to the users there were DW errors and the GPF's after the next
Retrieve()!

Any clues appreciated,
Thanks,
Bob

 
 
 

1. Crystal Reports and Crystal Data Object

Anyone here familiar with CR and Crystal Data Objects?

If so, can you identify why no records are being passed into the report,
even though it all looks like it should be :-)

==============================
LOCAL oEngine   AS ICRApplication
LOCAL oReport   AS ICRReport
// LOCAL  o    AS ICRPrintingStatus

LOCAL  oRowSet   AS CrystalDataObject
LOCAL aRows := {} AS ARRAY

oEngine  := ICRApplication{}
oReport  := oEngine:OpenReport( 'cdosample.rpt' )

oRowSet  := CrystalDataObject{}
oRowSet:AddField( 'Field1' )
oRowSet:AddField( 'Field2' )
oRowSet:AddField( 'Field3' )

AAdd( aRows, { 1, 'Mark'   , 'Keogh'      } )
AAdd( aRows, { 2, 'Robert' , 'Clay'       } )
AAdd( aRows, { 3, 'Marco'  , 'Martinez'   } )
AAdd( aRows, { 4, 'Rob'    , 'Landsberry' } )
AAdd( aRows, { 5, 'Melissa', 'Kerr'       } )
AAdd( aRows, { 6, 'Carol'  , 'Lenehan'    } )

oRowSet:AddRows( aRows )

// Returns 6 as I'd expect so the rows are being added to the CDO
? oRowSet:RowCount

// In delphi the call is
// SetPrivateData( 3, IDispatch( TVarData( CDORowSet ).VDispatch ) );
// Does VO pass the IDispatch as in VB etc, or do I need to get hold of it?
oReport:Database:Tables:Item(1):SetPrivateData( 3, oRowSet )

oReport:ReadRecords()

// This should return 6 but always returns 0
? oReport:PrintingStatus:RecordsRead
==============================

Thanks again !

Mark

2. fonts, CSD and Tseng, ghostscript (OS/2 experience)

3. Crystal Reports and the Crystal RDC

4. Code changes when saving shared borders in FP2000

5. Reporting Actual Hours from MSP2K on SQL2k using Crystal Reports

6. KILLFEATUREENABLED

7. Urgent Opening --- Sr Crystal Reports Developer -- Herndon, VA -- 5 Months

8. How to create wide pens in WINCE ?

9. Urgent Opening --- Crystal Reports Developer --- Windston, NC --- 3+ Months --- NEED LOCALS

10. Opening for Crystal Reports developer (LOCALS ONLY)

11. Opening for Crystal Reports Architect

12. REQ;Crystal Reports Developer - LOCALS to MN

13. ITG - Job Opportunity @ "Crystal Reports Developer" position based in Connecticut for about 4 Months