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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot preview/Print Crystal Report Through VFP 7.0

Status
Not open for further replies.

AVAS

Programmer
Jan 10, 2003
16
CY
I am trying to preview/print a report through Visual FoxPro 7.0 and I have the Following Code:

LOCAL oCR as CRAXDRT.Application
LOCAL oRpt as CRAXDRT.Report

oCr=CREATEOBJECT('CrystalRuntime.Application')
oRpt=oCr.OpenReport('c:\MyReport.rpt')
IF oRpt.HasSavedData()
oRpt.DiscardSavedData()
ENDIF
oRpt.PrintOut



The problem is i get this error for the "oRpt.PrintOut" Command :

"There is Not Enough Memory For This Operation"

Any Ideas??
 
Any Ideas??

How much Ram do you have? I have tested your code on XP with 256 megs and I get no error. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
i have
Windows 2000
196,036 KB RAM

Do you think that this is my problem?
 
Avas

Can you test your code with a machine that has more Ram? Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top