Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR 9 Any way to change the data location prior to exec within VFP9

Status
Not open for further replies.

taterday

Programmer
Jan 28, 2009
183
US
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top