PUBLIC OCR AS CRAXDRT.APPLICATION
PUBLIC ORPT AS CRAXDRT.REPORT
I issue a createobject at the beginning:
ocr=CREATEOBJECT("CrystalRuntime.Application. 9")
ORPT=OCR.OPENREPORT("c:\foldername\PF_DOCUMENTS.rpt")
ORPT.PRINTOUT(.F.)
As you can see I have it hardcoded. I could use a variable here and have the users furnishes another location but I don't know how to get the report to respect the "on the fly" location.
What I am doing works fine, however, the users want to change their data location depending...
I know this can be done within CR9 but all they have is the ability to run the report.
Can it be changed issuing commands within a VFP program prior to running the report?
Any help would be appreciate. Even a firm No and I could quit trying.
PUBLIC ORPT AS CRAXDRT.REPORT
I issue a createobject at the beginning:
ocr=CREATEOBJECT("CrystalRuntime.Application. 9")
ORPT=OCR.OPENREPORT("c:\foldername\PF_DOCUMENTS.rpt")
ORPT.PRINTOUT(.F.)
As you can see I have it hardcoded. I could use a variable here and have the users furnishes another location but I don't know how to get the report to respect the "on the fly" location.
What I am doing works fine, however, the users want to change their data location depending...
I know this can be done within CR9 but all they have is the ability to run the report.
Can it be changed issuing commands within a VFP program prior to running the report?
Any help would be appreciate. Even a firm No and I could quit trying.