Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple question on Crystal Report
Message
From
01/10/1999 04:26:50
Walter Meester
HoogkarspelNetherlands
 
 
To
01/10/1999 03:07:18
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00246100
Message ID:
00271427
Views:
35
Virusim,

Note that this applies to CR 7.0: The code won't work for previous version


>Thank for your advise on CR. As I am new to CR. There are 02 questions that I had doubts with in CR, please kindly help me on it. Thank a lot

>01) Do my VFP DBF files need to have all the required field inside it for CR to
work, can I just use any public variable from VFP inside CR like VFP report designer do. Please advise.

You can define parameter fields with a report. IF you give them the same name of the variables used in your program, you can use the following code to pass the values of the VFP variables to the Report:

WITH crReport.ParameterFields
FOR nT= 1 TO .Count
cName=.Item(nT).ParameterFieldName
IF TYPE(cName) # "U"
.item(nT).SetCurrentValue(EVAL(cName))
ENDIF
ENDFOR
ENDWITH

02) Can I use CR to do index for VFP DBF files.

You can. However I did discover some difficulties with relations and CDX files. IDX indexfiles seems to do the job well.

I strongly suggest making a class to handle communication with CR reports.

Walter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform