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

Getting and "out of memory error 20500" when trying to print a report

Status
Not open for further replies.

hoggle

Programmer
Jul 13, 2001
124
US
I'm using vb 6 and the crystal reports ocx, which connects to a sql server 2000 database. And when I try to directly print the report, it gives me an error "run - time error 20500 not enough memory for operation"
The program works on my development computers, but just not on client computers when I install it.
I searched crystals site and found that crystal is trying to connect to the wrong database, but crystal's site only tells how to fix it with accessing a access db, not sql server. Any one else run into this problem and know of a fix?

Thanks

here's the code that calls it:

CrystalReport1.ReportFileName = App.Path & "\PWMS_Pallet_Tag.rpt"
CrystalReport1.ParameterFields(0) = "PalletIDTagInput;" & palletTagID & ";TRUE"
CrystalReport1.ParameterFields(1) = "ShiftCounter;" & shiftCounter & ";TRUE"

'print report here
CrystalReport1.CopiesToPrinter = 3 'print 3 copies of this report
CrystalReport1.Destination = crptToPrinter
CrystalReport1.action = 1
 
I figured it out...when crystal installed it installed a 44kb version of U2Lcom.dll (into Windows/crystal), and when my program installed it installed a 144kb version into (into windows/system). And I guess the program needs the 44k version to be in windows/system
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top